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
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2015-01-06 16:54:40 +0300
committerMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2015-01-06 16:54:40 +0300
commitc8b0476cee6d52f46e4f60ce36f77020d1c3d04d (patch)
tree5138ee3edfa108999fb7dc9d08aab2c35e5b8335 /moses/TranslationOption.h
parent7fac15e62495ab4245ff47e6ab0eeabdc6e91f3b (diff)
Added function to update future score and full score
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r--moses/TranslationOption.h4
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);