summaryrefslogtreecommitdiff
path: root/klm/search/rule.hh
blob: 0ce2794db93014fdce7fcafcbc68ff5d69a703a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SEARCH_RULE__
#define SEARCH_RULE__

#include "lm/left.hh"
#include "lm/word_index.hh"
#include "search/types.hh"

#include <vector>

namespace search {

template <class Model> class Context;

const lm::WordIndex kNonTerminal = lm::kMaxWordIndex;

template <class Model> float ScoreRule(const Context<Model> &context, const std::vector<lm::WordIndex> &words, bool prepend_bos, lm::ngram::ChartState *state_out);

} // namespace search

#endif // SEARCH_RULE__