diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-11-09 15:44:39 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-11-09 15:44:39 +0300 |
commit | d0be56f8abcb6842a37daaf696ef4e84d25db9ea (patch) | |
tree | c46d4027f2eab57b2c196662d1b3950cc19456d2 /moses/ChartHypothesis.cpp | |
parent | 176573c0724a65be8c36e5b5c3890d201f936d63 (diff) |
Consistent naming: total score -> m_futureScore
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp index 7c9f17621..00d05055f 100644 --- a/moses/ChartHypothesis.cpp +++ b/moses/ChartHypothesis.cpp @@ -207,7 +207,7 @@ void ChartHypothesis::EvaluateWhenApplied() // total scores from prev hypos for (std::vector<const ChartHypothesis*>::const_iterator iter = m_prevHypos.begin(); iter != m_prevHypos.end(); ++iter) { const ChartHypothesis &prevHypo = **iter; - m_totalScore += prevHypo.GetTotalScore(); + m_totalScore += prevHypo.GetFutureScore(); } } @@ -241,7 +241,7 @@ void ChartHypothesis::AddArc(ChartHypothesis *loserHypo) // sorting helper struct CompareChartHypothesisTotalScore { bool operator()(const ChartHypothesis* hypo1, const ChartHypothesis* hypo2) const { - return hypo1->GetTotalScore() > hypo2->GetTotalScore(); + return hypo1->GetFutureScore() > hypo2->GetFutureScore(); } }; @@ -350,7 +350,7 @@ std::ostream& operator<<(std::ostream& out, const ChartHypothesis& hypo) out << " " << prevHypo.GetId(); } - out << " [total=" << hypo.GetTotalScore() << "]"; + out << " [total=" << hypo.GetFutureScore() << "]"; out << " " << hypo.GetScoreBreakdown(); //out << endl; |