diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /moses/TrellisPath.cpp | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'moses/TrellisPath.cpp')
-rw-r--r-- | moses/TrellisPath.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/moses/TrellisPath.cpp b/moses/TrellisPath.cpp index c73575b2c..fed8f9658 100644 --- a/moses/TrellisPath.cpp +++ b/moses/TrellisPath.cpp @@ -41,7 +41,8 @@ TrellisPath::TrellisPath(const Hypothesis *hypo) } } -void TrellisPath::InitScore() { +void TrellisPath::InitScore() +{ m_totalScore = m_path[0]->GetWinningHypo()->GetTotalScore(); m_scoreBreakdown= m_path[0]->GetWinningHypo()->GetScoreBreakdown(); @@ -82,8 +83,8 @@ TrellisPath::TrellisPath(const TrellisPath ©, size_t edgeIndex, const Hypoth InitScore(); } -TrellisPath::TrellisPath(const vector<const Hypothesis*> edges) -:m_prevEdgeChanged(NOT_FOUND) +TrellisPath::TrellisPath(const vector<const Hypothesis*> edges) + :m_prevEdgeChanged(NOT_FOUND) { m_path.resize(edges.size()); copy(edges.rbegin(),edges.rend(),m_path.begin()); |