From 018b0bbac09d2210a1c6e7ab3504d65e5d0bb3aa Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Wed, 13 Jun 2012 15:08:03 +0100 Subject: [PATCH] Loosing factor checking for chart decoding --- moses/src/Word.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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) {