Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-11-15 16:00:15 +0400
committerKenneth Heafield <github@kheafield.com>2012-11-15 16:00:15 +0400
commitd653d45abc182e71c25a5b6545db0abf2312631f (patch)
treec7728519617ac7ea84a7216d7a9101caf66b63ab /lm/model.cc
parent5e3726eb90d68599fbe145211630b04cef1a1322 (diff)
KenLM 85e5fe4: mostly fixes for cygwin/windows
Diffstat (limited to 'lm/model.cc')
-rw-r--r--lm/model.cc1
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;