Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mira
diff options
context:
space:
mode:
authorEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-04-30 08:31:09 +0400
committerEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-04-30 08:31:09 +0400
commit81a252f787e04e9203cdeef351795144f01081cb (patch)
treec3b421027eb00123545f509316565d996c350bf3 /mira
parent1bf5f37197965244a6dad9324ed296e409a8c36e (diff)
fix setting bleu weights
Diffstat (limited to 'mira')
-rw-r--r--mira/Main.cpp13
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: