fix: change position var to int

This commit is contained in:
Eva Hasler 2012-02-27 13:39:23 +00:00
parent 1291f0e889
commit b0e8909f50

View File

@ -53,7 +53,7 @@ void WordTranslationFeature::Evaluate(const TargetPhrase& targetPhrase,
for (AlignmentInfo::const_iterator alignmentPoint = alignment.begin(); alignmentPoint != alignment.end(); alignmentPoint++) {
// look up words
const Phrase& sourcePhrase = targetPhrase.GetSourcePhrase();
size_t alignedSourcePos = alignmentPoint->first;
int alignedSourcePos = alignmentPoint->first;
const string &sourceWord = sourcePhrase.GetWord(alignedSourcePos).GetFactor(m_factorTypeSource)->GetString();
const string &targetWord = targetPhrase.GetWord(alignmentPoint->second).GetFactor(m_factorTypeTarget)->GetString();
bool sourceExists = m_vocabSource.find( sourceWord ) != m_vocabSource.end();