missing condition

This commit is contained in:
Matthias Huck 2015-02-20 21:46:38 +00:00
parent f317a2cebd
commit 372d14a9e8

View File

@ -363,7 +363,7 @@ FFState* PhraseOrientationFeature::EvaluateWhenApplied(
}
}
if ( reoClassData->firstNonTerminalIsBoundary ) {
if ( (nNT == 0) && reoClassData->firstNonTerminalIsBoundary ) {
// delay left-to-right scoring
FEATUREVERBOSE(3, "Delaying left-to-right scoring" << std::endl);
@ -465,7 +465,7 @@ FFState* PhraseOrientationFeature::EvaluateWhenApplied(
}
}
if ( reoClassData->lastNonTerminalIsBoundary ) {
if ( (nNT == currTarPhr.GetAlignNonTerm().GetSize()-1) && reoClassData->lastNonTerminalIsBoundary ) {
// delay right-to-left scoring
FEATUREVERBOSE(3, "Delaying right-to-left scoring" << std::endl);