mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
Fix a stupid mistake in TargetWords
This commit is contained in:
parent
7e26228fd7
commit
ea03722aaa
@ -620,9 +620,11 @@ 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);
|
||||
}
|
||||
const Word& word = whole_phrase.GetWord(i);
|
||||
words[j] = getNeuralLMId(word);
|
||||
j++;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user