mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 03:33:37 +03:00
PhraseOrientationFeature
This commit is contained in:
parent
0ddea954f2
commit
152ddb7513
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user