diff options
-rw-r--r-- | phrase-extract/extract-main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp index 49e01a50c..5d58028d6 100644 --- a/phrase-extract/extract-main.cpp +++ b/phrase-extract/extract-main.cpp @@ -558,7 +558,7 @@ REO_POS getOrientPhraseModel (SentenceAlignment & sentence, REO_MODEL_TYPE model return DRIGHT; connectedRightTop = false; for(int indexF=endF+2*unit; (*lt)(indexF, countF) && !connectedRightTop; indexF=indexF+unit) - if(connectedRightTop = (it = inBottomLeft.find(startE - unit)) != inBottomRight.end() && + if(connectedRightTop = (it = inBottomLeft.find(startE - unit)) != inBottomLeft.end() && it->second.find(indexF) != it->second.end()) return DLEFT; return UNKNOWN; @@ -608,9 +608,9 @@ REO_POS getOrientHierModel (SentenceAlignment & sentence, REO_MODEL_TYPE modelTy } connectedRightTop = false; for(int indexF=endF+2*unit; (*lt)(indexF, countF) && !connectedRightTop; indexF=indexF+unit) { - if((connectedRightTop = (it = inBottomLeft.find(startE - unit)) != inBottomRight.end() && + if((connectedRightTop = (it = inBottomLeft.find(startE - unit)) != inBottomLeft.end() && it->second.find(indexF) != it->second.end()) || - (connectedRightTop = (it = outBottomLeft.find(startE - unit)) != outBottomRight.end() && + (connectedRightTop = (it = outBottomLeft.find(startE - unit)) != outBottomLeft.end() && it->second.find(indexF) != it->second.end())) return DLEFT; } |