Fix a stupid mistake in TargetWords

This commit is contained in:
XapaJIaMnu 2014-09-10 18:04:39 +01:00 committed by Paul Baltescu
parent 7e26228fd7
commit ea03722aaa

View File

@ -620,10 +620,12 @@ void BilingualLM::getTargetWordsChart(Phrase& whole_phrase
for (int i = current_word_index - target_ngrams; i < current_word_index + 1; i++){
if (i < 0) {
words[j] = getNeuralLMId(BOS_word);
}
} else {
const Word& word = whole_phrase.GetWord(i);
words[j] = getNeuralLMId(word);
}
j++;
}
}