diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2015-01-07 20:10:26 +0300 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2015-01-07 20:10:26 +0300 |
commit | 60cae6418f0c499a67387e086383f79200c91cc4 (patch) | |
tree | 5ed6cfb27f5d442d276c538dd0933bf9cc95859b | |
parent | 0441fd6ab9600915297bcec1702f56fa5feedf98 (diff) |
avoid Assign() in EvaluateWhenApplied (in preparation for Matthias' changes)
-rw-r--r-- | moses/LM/BilingualLM.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/LM/BilingualLM.cpp b/moses/LM/BilingualLM.cpp index 55dee58e4..118b24aab 100644 --- a/moses/LM/BilingualLM.cpp +++ b/moses/LM/BilingualLM.cpp @@ -465,7 +465,8 @@ FFState* BilingualLM::EvaluateWhenApplied( } size_t new_state = getStateChart(neuralLMids); - accumulator->Assign(this, value); + accumulator->PlusEquals(this, -accumulator->GetScoreForProducer(this)); + accumulator->PlusEquals(this, value); return new BilingualLMState(new_state, alignments, neuralLMids); } |