mosesdecoder/search/rule.hh

21 lines
468 B
C++
Raw Normal View History

2012-10-15 16:58:33 +04:00
#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__