diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-02-06 04:30:00 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-02-06 04:30:00 +0300 |
commit | be5799dca34027849fc40a38a63459e164f27add (patch) | |
tree | 140e865a962c546c12e2322ab76a56699e7338c6 /moses/TranslationOption.h | |
parent | 80a9f84422f3b7ce3ddf0bcfcbe2e8d06bba9e98 (diff) | |
parent | 8b61f396a7558bf628c2e94a9583023b9ae34a8c (diff) |
Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Conflicts:
moses/TranslationOptionCollection.cpp
moses/TranslationOptionCollectionLattice.cpp
moses/TranslationOptionCollectionLattice.h
moses/TranslationOptionList.h
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r-- | moses/TranslationOption.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h index 1f0a15a0f..a5effef88 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -148,6 +148,10 @@ public: void EvaluateWithSourceContext(const InputType &input); + void UpdateScore(ScoreComponentCollection *futureScoreBreakdown = NULL) { + m_targetPhrase.UpdateScore(futureScoreBreakdown); + } + /** returns cached scores */ inline const Scores *GetLexReorderingScores(const LexicalReordering *scoreProducer) const { _ScoreCacheMap::const_iterator it = m_lexReorderingScores.find(scoreProducer); |