mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
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:
parent
540d6dd6e7
commit
bdd9b5d833
@ -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);
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user