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
path: root/moses
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-02-09 14:43:44 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-02-09 14:43:44 +0300
commitce80e53b30f766ab85cb58c4a2d06742b4a4f38b (patch)
treeab4f4bff48f6faef7a472b9e2d5a6ec1bb09b6cf /moses
parent066a681b43a4e153db5789ae0b3a39b623030a93 (diff)
set scores for lattice path
Diffstat (limited to 'moses')
-rw-r--r--moses/FF/InputFeature.cpp14
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