setting of bleu weight

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/mira-mtm5@3517 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bhaddow 2010-09-17 13:53:08 +00:00
parent 540d6dd6e7
commit bdd9b5d833
2 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ int main(int argc, char** argv) {
// MODEL
PARAM_VEC bleuWeight(1, "0");
staticNonConst.GetParameter()->OverwriteParam("-weight-b", bleuWeight);
staticNonConst.GetParameter()->OverwriteParam("weight-bl", bleuWeight);
staticNonConst.ReLoadParameter();
scores.clear(); totalScores.clear();
decoder->getNBest(input, modelHypoCount, scores, totalScores);
@ -157,7 +157,7 @@ int main(int argc, char** argv) {
// HOPE
bleuWeight[0] = "+1";
staticNonConst.GetParameter()->OverwriteParam("-weight-b", bleuWeight);
staticNonConst.GetParameter()->OverwriteParam("weight-bl", bleuWeight);
staticNonConst.ReLoadParameter();
scores.clear(); totalScores.clear();
decoder->getNBest(input, hopeHypoCount, scores, totalScores);
@ -171,7 +171,7 @@ int main(int argc, char** argv) {
// FEAR
bleuWeight[0] = "-1";
staticNonConst.GetParameter()->OverwriteParam("-weight-b", bleuWeight);
staticNonConst.GetParameter()->OverwriteParam("weight-bl", bleuWeight);
staticNonConst.ReLoadParameter();
scores.clear(); totalScores.clear();
decoder->getNBest(input, fearHypoCount, scores, totalScores);

View File

@ -78,7 +78,7 @@ Parameter::Parameter()
AddParam("early-discarding-threshold", "edt", "threshold for constructing hypotheses based on estimate cost");
AddParam("verbose", "v", "verbosity level of the logging");
AddParam("references", "Reference file(s) - used for bleu score feature");
AddParam("weight-b", "bl", "weight for bleu score feature");
AddParam("weight-bl", "bl", "weight for bleu score feature");
AddParam("weight-d", "d", "weight(s) for distortion (reordering components)");
AddParam("weight-lr", "lr", "weight(s) for lexicalized reordering, if not included in weight-d");
AddParam("weight-generation", "g", "weight(s) for generation components");