diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2015-02-21 00:46:38 +0300 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2015-02-21 00:46:38 +0300 |
commit | 372d14a9e807b466cc74b3571f2466c4e742ed00 (patch) | |
tree | 52c975fa67672bb242c6a0d348f85b3e2a7d0ac8 /moses | |
parent | f317a2cebdc7f7810d0fb0669b5bc129ded62c34 (diff) |
missing condition
Diffstat (limited to 'moses')
-rw-r--r-- | moses/FF/PhraseOrientationFeature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FF/PhraseOrientationFeature.cpp b/moses/FF/PhraseOrientationFeature.cpp index e13811192..5cb252270 100644 --- a/moses/FF/PhraseOrientationFeature.cpp +++ b/moses/FF/PhraseOrientationFeature.cpp @@ -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); |