From f53825c71e3366a989764c569f0473adb95548fd Mon Sep 17 00:00:00 2001 From: Peng Li Date: Wed, 20 Nov 2013 16:22:15 +0800 Subject: Fix the bug in phrase-extract/extract-main.cpp: the authors forgot to change inBottomRight/outBottomRight to inBottomLeft/outBottomLeft in the second loops in getOrientPhraseModel() and getOrientHierModel() --- phrase-extract/extract-main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phrase-extract/extract-main.cpp') diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp index 0b21eb19a..364ec1a91 100644 --- a/phrase-extract/extract-main.cpp +++ b/phrase-extract/extract-main.cpp @@ -556,7 +556,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; @@ -606,9 +606,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; } -- cgit v1.2.3