mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
fix vectors not being cleared
This commit is contained in:
parent
5d1584a3d8
commit
97b7c766e4
@ -783,6 +783,8 @@ FFState* BilingualLM::EvaluateWhenApplied(
|
||||
appendSourceWordsToVector(source_sent, source_words, prev_word_alignments[j]); //Get Source words
|
||||
getTargetWordsChart(whole_phrase, i + additional_shift + j, target_words);
|
||||
value += Score(source_words, target_words); //Get the score
|
||||
source_words.clear();
|
||||
target_words.clear();
|
||||
}
|
||||
additional_shift += prev_whole_phrase.GetSize() - 1; //Take into account the size of this non Terminal
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user