fix vectors not being cleared

This commit is contained in:
XapaJIaMnu 2014-09-16 11:24:50 +01:00 committed by Paul Baltescu
parent 5d1584a3d8
commit 97b7c766e4

View File

@ -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