Bug fix in Word::CreateFromString(...).

This commit is contained in:
Ulrich Germann 2014-04-12 22:10:40 +01:00
parent b7f2e18efc
commit 27d233796d

View File

@ -134,7 +134,7 @@ CreateFromString(FactorDirection direction
{
UTIL_THROW_IF(factorOrder[k] >= MAX_NUM_FACTORS, util::Exception,
"Factor order out of bounds.");
m_factorArray[factorOrder[k]] = factorCollection.AddFactor(bits[k]);
m_factorArray[factorOrder[k]] = factorCollection.AddFactor(bits[k], isNonTerminal);
}
// assume term/non-term same for all factors