PhraseOrientationFeature

This commit is contained in:
Matthias Huck 2014-09-12 18:05:27 +01:00
parent 0ddea954f2
commit 152ddb7513

View File

@ -53,8 +53,6 @@ void PhraseOrientationFeature::EvaluateWhenApplied(
const Phrase *currSrcPhr = currTarPhr.GetRuleSource();
// const Factor* targetLHS = currTarPhr.GetTargetLHS()[0];
// bool isGlueGrammarRule = false;
bool isUnkRule = false;
std::map<size_t,size_t> alignMap;
alignMap.insert(
@ -188,14 +186,8 @@ void PhraseOrientationFeature::EvaluateWhenApplied(
UTIL_THROW_IF2(!currTarPhr.GetWord(0).IsOOV(), GetScoreProducerDescription()
<< ": Missing Orientation property. "
<< "Please check phrase table and glue rules.");
// unknown word
isUnkRule = true;
}
const WordsRange& prevWordsRange = prevHypo->GetCurrSourceRange();
size_t prevStartPos = prevWordsRange.GetStartPos();
size_t prevEndPos = prevWordsRange.GetEndPos();
++nonTerminalNumber;
}
}