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,9 +620,11 @@ void BilingualLM::getTargetWordsChart(Phrase& whole_phrase
|
|||||||
for (int i = current_word_index - target_ngrams; i < current_word_index + 1; i++){
|
for (int i = current_word_index - target_ngrams; i < current_word_index + 1; i++){
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
words[j] = getNeuralLMId(BOS_word);
|
words[j] = getNeuralLMId(BOS_word);
|
||||||
|
} else {
|
||||||
|
const Word& word = whole_phrase.GetWord(i);
|
||||||
|
words[j] = getNeuralLMId(word);
|
||||||
}
|
}
|
||||||
const Word& word = whole_phrase.GetWord(i);
|
j++;
|
||||||
words[j] = getNeuralLMId(word);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user