mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 12:52:29 +03:00
missing condition
This commit is contained in:
parent
f317a2cebd
commit
372d14a9e8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user