diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-02-09 14:43:44 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-02-09 14:43:44 +0300 |
commit | ce80e53b30f766ab85cb58c4a2d06742b4a4f38b (patch) | |
tree | ab4f4bff48f6faef7a472b9e2d5a6ec1bb09b6cf /moses | |
parent | 066a681b43a4e153db5789ae0b3a39b623030a93 (diff) |
set scores for lattice path
Diffstat (limited to 'moses')
-rw-r--r-- | moses/FF/InputFeature.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/moses/FF/InputFeature.cpp b/moses/FF/InputFeature.cpp index 39535f58f..10e5347e4 100644 --- a/moses/FF/InputFeature.cpp +++ b/moses/FF/InputFeature.cpp @@ -52,15 +52,15 @@ void InputFeature::EvaluateWithSourceContext(const InputType &input , ScoreComponentCollection *estimatedFutureScore) const { if (m_legacy) { - //binary phrase-table does input feature itself - return; + //binary phrase-table does input feature itself + return; } - /* - const ScorePair *scores = inputPath.GetInputScore(); - if (scores) { - scoreBreakdown.PlusEquals(this, *scores); + else if (input.GetType() == WordLatticeInput){ + const ScorePair *scores = inputPath.GetInputScore(); + if (scores) { + scoreBreakdown.PlusEquals(this, *scores); + } } - */ } } // namespace |