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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2016-01-19 21:45:23 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2016-01-19 21:45:23 +0300
commitffdc9711e908fd70688180afe4a7f853447a0280 (patch)
treed00b4b674a873261fdc36344372dcdf6e3f572f2 /moses/TrellisPath.cpp
parent3a87b8f193b191fdb38d722818da1e0a4e31077f (diff)
TrellisPath::InitTotalScore() and TrellisPath::GetScoreBreakDown() now use compute m_totalScore again in an identical fashion.
Diffstat (limited to 'moses/TrellisPath.cpp')
-rw-r--r--moses/TrellisPath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TrellisPath.cpp b/moses/TrellisPath.cpp
index 1f09b2eed..87ba17843 100644
--- a/moses/TrellisPath.cpp
+++ b/moses/TrellisPath.cpp
@@ -42,7 +42,7 @@ TrellisPath::TrellisPath(const Hypothesis *hypo)
void TrellisPath::InitTotalScore()
{
- m_totalScore = m_path[0]->GetWinningHypo()->GetFutureScore();
+ 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->GetFutureScore() + hypo->GetFutureScore();
+ m_totalScore += hypo->GetFutureScore() - winningHypo->GetFutureScore();
}
}
}