Fix small indexing error

This commit is contained in:
XapaJIaMnu 2014-08-29 18:38:46 +01:00 committed by Paul Baltescu
parent 19a11b854d
commit c225fb27d1

View File

@ -108,7 +108,7 @@ void BilingualLM::getTargetWords(const Hypothesis &cur_hypo
additional_needed = -additional_needed;
std::vector<int> prev_words(additional_needed);
requestPrevTargetNgrams(cur_hypo, additional_needed, prev_words);
for (int i=0; i<additional_needed; i++){
for (int i=additional_needed -1 ; i>-1; i--){
words[j] = prev_words[i];
j++;
}