Loosing factor checking for chart decoding

This commit is contained in:
Hieu Hoang 2012-06-13 15:08:03 +01:00
parent 742f2d047f
commit 018b0bbac0

View File

@ -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) {