diff options
author | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-30 08:31:09 +0400 |
---|---|---|
committer | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-30 08:31:09 +0400 |
commit | 81a252f787e04e9203cdeef351795144f01081cb (patch) | |
tree | c3b421027eb00123545f509316565d996c350bf3 /mira | |
parent | 1bf5f37197965244a6dad9324ed296e409a8c36e (diff) |
fix setting bleu weights
Diffstat (limited to 'mira')
-rw-r--r-- | mira/Main.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mira/Main.cpp b/mira/Main.cpp index 6daaf3407..bcd379875 100644 --- a/mira/Main.cpp +++ b/mira/Main.cpp @@ -558,15 +558,14 @@ int main(int argc, char** argv) { for (LMList::const_iterator i = lmList.begin(); i != lmList.end(); ++i) lmSum += abs(initialWeights.GetScoreForProducer(*i)); bleuWeight = lmSum * bleu_weight_lm_factor; - - if (bleuWeight_hope == -1) { - bleuWeight_hope = bleuWeight; - } - if (bleuWeight_fear == -1) { - bleuWeight_fear = bleuWeight; - } } + if (bleuWeight_hope == -1) { + bleuWeight_hope = bleuWeight; + } + if (bleuWeight_fear == -1) { + bleuWeight_fear = bleuWeight; + } cerr << "Bleu weight: " << bleuWeight << endl; //Main loop: |