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:
authorHieu Hoang <hieuhoang@gmail.com>2015-11-09 15:44:39 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-11-09 15:44:39 +0300
commitd0be56f8abcb6842a37daaf696ef4e84d25db9ea (patch)
treec46d4027f2eab57b2c196662d1b3950cc19456d2 /moses/ChartKBestExtractor.cpp
parent176573c0724a65be8c36e5b5c3890d201f936d63 (diff)
Consistent naming: total score -> m_futureScore
Diffstat (limited to 'moses/ChartKBestExtractor.cpp')
-rw-r--r--moses/ChartKBestExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartKBestExtractor.cpp b/moses/ChartKBestExtractor.cpp
index bd5d7cbcd..43e4b7f94 100644
--- a/moses/ChartKBestExtractor.cpp
+++ b/moses/ChartKBestExtractor.cpp
@@ -54,7 +54,7 @@ void ChartKBestExtractor::Extract(
// recombined.
for (++p; p != topLevelHypos.end(); ++p) {
// Check that the first item in topLevelHypos really was the best.
- UTIL_THROW_IF2((*p)->GetTotalScore() > bestTopLevelHypo.GetTotalScore(),
+ UTIL_THROW_IF2((*p)->GetFutureScore() > bestTopLevelHypo.GetFutureScore(),
"top-level hypotheses are not correctly sorted");
// Note: there's no need for a smart pointer here: supremeHypo will take
// ownership of altHypo.
@@ -308,7 +308,7 @@ ChartKBestExtractor::Derivation::Derivation(const UnweightedHyperarc &e)
boost::shared_ptr<Derivation> sub(pred.kBestList[0]);
subderivations.push_back(sub);
}
- score = edge.head->hypothesis.GetTotalScore();
+ score = edge.head->hypothesis.GetFutureScore();
}
// Construct a Derivation that neighbours an existing Derivation.