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/TrellisPath.cpp
parent176573c0724a65be8c36e5b5c3890d201f936d63 (diff)
Consistent naming: total score -> m_futureScore
Diffstat (limited to 'moses/TrellisPath.cpp')
-rw-r--r--moses/TrellisPath.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/moses/TrellisPath.cpp b/moses/TrellisPath.cpp
index 7b7baa815..1ff46117a 100644
--- a/moses/TrellisPath.cpp
+++ b/moses/TrellisPath.cpp
@@ -31,7 +31,7 @@ namespace Moses
TrellisPath::TrellisPath(const Hypothesis *hypo)
: m_prevEdgeChanged(NOT_FOUND)
{
- m_totalScore = hypo->GetTotalScore();
+ m_totalScore = hypo->GetFutureScore();
// enumerate path using prevHypo
while (hypo != NULL) {
@@ -42,7 +42,7 @@ TrellisPath::TrellisPath(const Hypothesis *hypo)
void TrellisPath::InitTotalScore()
{
- m_totalScore = m_path[0]->GetWinningHypo()->GetTotalScore();
+ m_totalScore = m_path[0]->GetWinningHypo()->GetFutureScore();
//calc score
size_t sizePath = m_path.size();
@@ -50,7 +50,7 @@ void TrellisPath::InitTotalScore()
const Hypothesis *hypo = m_path[pos];
const Hypothesis *winningHypo = hypo->GetWinningHypo();
if (hypo != winningHypo) {
- m_totalScore = m_totalScore - winningHypo->GetTotalScore() + hypo->GetTotalScore();
+ m_totalScore = m_totalScore - winningHypo->GetFutureScore() + hypo->GetFutureScore();
}
}
}
@@ -167,7 +167,7 @@ void TrellisPath::CreateDeviantPaths(TrellisPathList &pathColl) const
const boost::shared_ptr<ScoreComponentCollection> TrellisPath::GetScoreBreakdown() const
{
if (!m_scoreBreakdown) {
- float totalScore = m_path[0]->GetWinningHypo()->GetTotalScore(); // calculated for sanity check only
+ float totalScore = m_path[0]->GetWinningHypo()->GetFutureScore(); // calculated for sanity check only
m_scoreBreakdown = boost::shared_ptr<ScoreComponentCollection>(new ScoreComponentCollection());
m_scoreBreakdown->PlusEquals(ScoreComponentCollection(m_path[0]->GetWinningHypo()->GetScoreBreakdown()));
@@ -178,7 +178,7 @@ const boost::shared_ptr<ScoreComponentCollection> TrellisPath::GetScoreBreakdown
const Hypothesis *hypo = m_path[pos];
const Hypothesis *winningHypo = hypo->GetWinningHypo();
if (hypo != winningHypo) {
- totalScore = totalScore - winningHypo->GetTotalScore() + hypo->GetTotalScore();
+ totalScore = totalScore - winningHypo->GetFutureScore() + hypo->GetFutureScore();
m_scoreBreakdown->MinusEquals(winningHypo->GetScoreBreakdown());
m_scoreBreakdown->PlusEquals(hypo->GetScoreBreakdown());
}