diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-06 16:54:40 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-06 16:54:40 +0300 |
commit | c8b0476cee6d52f46e4f60ce36f77020d1c3d04d (patch) | |
tree | 5138ee3edfa108999fb7dc9d08aab2c35e5b8335 /moses/TranslationOption.h | |
parent | 7fac15e62495ab4245ff47e6ab0eeabdc6e91f3b (diff) |
Added function to update future score and full score
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 9d2e10780..ff2a6295c 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -137,6 +137,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); |