#ifndef SEARCH_RULE__ #define SEARCH_RULE__ #include "lm/left.hh" #include "lm/word_index.hh" #include "search/types.hh" #include namespace search { const lm::WordIndex kNonTerminal = lm::kMaxWordIndex; struct ScoreRuleRet { Score prob; unsigned int oov; }; // Pass and normally. // Indicate non-terminals with kNonTerminal. template ScoreRuleRet ScoreRule(const Model &model, const std::vector &words, lm::ngram::ChartState *state_out); } // namespace search #endif // SEARCH_RULE__