word alignment info for hiero grammar

This commit is contained in:
Hieu Hoang 2012-08-24 19:11:35 +01:00
parent 69fc00faf9
commit fa56d7861f

View File

@ -550,6 +550,10 @@ void outputPhrasePair(const PhraseAlignmentCollection &phrasePair, float totalCo
int sourcePos = *(bestAlignment->alignedToT[ j ].begin());
phraseTableFile << sourcePos << "-" << j << " ";
}
else if (wordAlignmentFlag) {
int sourcePos = *(bestAlignment->alignedToT[ j ].begin());
phraseTableFile << sourcePos << "-" << j << " ";
}
}
} else if (wordAlignmentFlag) {
// alignment info in pb model