diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-12-04 15:49:43 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-12-04 15:49:43 +0400 |
commit | 3a98885e56b542fd5f5c31799a124e4b722e4eb4 (patch) | |
tree | 0fa15607f45c8d8e7f41d3f708c277e175fd8837 | |
parent | cfc348a41304153a6c70a446e155f20bc4210bc5 (diff) | |
parent | 64b629803d6d54f52d4c346cee89b27157b2c82c (diff) |
:Merge branch 'master' of github.com:moses-smt/mosesdecoder
-rw-r--r-- | moses/FF/CoveredReferenceFeature.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/FF/CoveredReferenceFeature.cpp b/moses/FF/CoveredReferenceFeature.cpp index e5a707396..19d8edfd1 100644 --- a/moses/FF/CoveredReferenceFeature.cpp +++ b/moses/FF/CoveredReferenceFeature.cpp @@ -116,9 +116,10 @@ FFState* CoveredReferenceFeature::Evaluate( remaining.begin(), remaining.end(), inserter(newCovered, newCovered.begin())); - // score is just the count of newly-covered words + vector<float> estimateScore = + cur_hypo.GetCurrTargetPhrase().GetScoreBreakdown().GetScoresForProducer(this); vector<float> scores; - scores.push_back(newCovered.size()); + scores.push_back(newCovered.size() - estimateScore[0]); accumulator->PlusEquals(this, scores); // update feature state |