Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2013-11-20 15:04:41 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-20 15:04:41 +0400
commit4f6f127486f357b907d6376718a81bbce501378d (patch)
tree5abc9f9fee1815b0699de73ee4ede9f9ef8772c7 /phrase-extract/extract-main.cpp
parentc2ffc022eab102fc2e1593c435c1eaa389583278 (diff)
parentf53825c71e3366a989764c569f0473adb95548fd (diff)
Merge pull request #53 from pengli09/master
Fix the bug in phrase-extract/extract-main.cpp: the authors forgot to change three variable names
Diffstat (limited to 'phrase-extract/extract-main.cpp')
-rw-r--r--phrase-extract/extract-main.cpp6
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;
}