multiple LMs

This commit is contained in:
Hieu Hoang 2013-06-07 21:08:05 +01:00
parent d281d025cf
commit e8b1eb047c

View File

@ -635,7 +635,6 @@ void Parameter::ConvertWeightArgsLM()
oovWeights = Scan<int>(m_setting["lmodel-oov-feature"]);
}
size_t ind = 0;
PARAM_MAP::iterator iterMap;
iterMap = m_setting.find(oldWeightName);
@ -681,7 +680,7 @@ void Parameter::ConvertWeightArgsLM()
++currOldInd;
}
SetWeight(newFeatureName, ind, weightsLM);
SetWeight(newFeatureName, lmIndex, weightsLM);
string featureLine = newFeatureName + " "
+ "factor=" + modelToks[1] + " " // factor