mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 14:05:29 +03:00
Fix a stupid mistake in TargetWords
This commit is contained in:
parent
7e26228fd7
commit
ea03722aaa
@ -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++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user