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
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-16 20:18:56 +0400
committerKenneth Heafield <github@kheafield.com>2012-10-16 20:18:56 +0400
commit3cc4d049599eccd08760a7fe75ae99428cdd8e23 (patch)
tree9812d7cf11885297b6e25298cc8c5f74df42a99f /search/edge_generator.cc
parent0378a58a37fb3c5fe3c2ddc258167d71541a72fb (diff)
Fix score should have been +=
Diffstat (limited to 'search/edge_generator.cc')
-rw-r--r--search/edge_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/search/edge_generator.cc b/search/edge_generator.cc
index 654f9e36f..43e0188fa 100644
--- a/search/edge_generator.cc
+++ b/search/edge_generator.cc
@@ -97,7 +97,7 @@ template <class Model> PartialEdge EdgeGenerator::Pop(Context<Model> &context, P
if (split) {
// We have an alternate.
- top.SetScore(top_nt[victim].Bound() - old_bound);
+ top.SetScore(top.GetScore() + top_nt[victim].Bound() - old_bound);
// TODO: dedupe?
generate_.push(top);
} else {