diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-11-15 16:00:15 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-11-15 16:00:15 +0400 |
commit | d653d45abc182e71c25a5b6545db0abf2312631f (patch) | |
tree | c7728519617ac7ea84a7216d7a9101caf66b63ab /lm/model.cc | |
parent | 5e3726eb90d68599fbe145211630b04cef1a1322 (diff) |
KenLM 85e5fe4: mostly fixes for cygwin/windows
Diffstat (limited to 'lm/model.cc')
-rw-r--r-- | lm/model.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lm/model.cc b/lm/model.cc index d045954e8..fc61efee6 100644 --- a/lm/model.cc +++ b/lm/model.cc @@ -227,6 +227,7 @@ template <class Search, class VocabularyT> FullScoreReturn GenericModel<Search, const WordIndex *const context_rend, const WordIndex new_word, State &out_state) const { + assert(new_word < vocab_.Bound()); FullScoreReturn ret; // ret.ngram_length contains the last known non-blank ngram length. ret.ngram_length = 1; |