diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2015-01-07 21:41:36 +0300 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2015-01-07 21:41:36 +0300 |
commit | 3e1ddaf71967b855cbc827e7b14f7e9e29c0c0fb (patch) | |
tree | 93a987680279797a3705ce0b8ad3066e91c4f4d1 /moses/LM | |
parent | 557b2f9a48adfe9a0626a7b83599093da1af4903 (diff) | |
parent | 60cae6418f0c499a67387e086383f79200c91cc4 (diff) |
Merge branch 'master' of git://github.com/moses-smt/mosesdecoder
Diffstat (limited to 'moses/LM')
-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); } |