diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-13 18:08:03 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-13 18:08:03 +0400 |
commit | 018b0bbac09d2210a1c6e7ab3504d65e5d0bb3aa (patch) | |
tree | 38c208af53da14ea71ac9cc741ebac29bd45789f | |
parent | 742f2d047fed8898f461ca42defc9094d0809660 (diff) |
Loosing factor checking for chart decoding
-rw-r--r-- | moses/src/Word.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/src/Word.cpp b/moses/src/Word.cpp index bc0a8e120..83283b924 100644 --- a/moses/src/Word.cpp +++ b/moses/src/Word.cpp @@ -94,7 +94,7 @@ void Word::CreateFromString(FactorDirection direction vector<string> wordVec; Tokenize(wordVec, str, "|"); - CHECK(wordVec.size() == factorOrder.size()); + CHECK(wordVec.size() <= factorOrder.size()); const Factor *factor; for (size_t ind = 0; ind < wordVec.size(); ++ind) { |