mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
multiple LMs
This commit is contained in:
parent
d281d025cf
commit
e8b1eb047c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user