From 0804f69776fd0ea26be7ed3a6cc8218db28ec985 Mon Sep 17 00:00:00 2001 From: MosesAdmin Date: Thu, 5 Nov 2015 00:00:36 +0000 Subject: daily automatic beautifier --- phrase-extract/extract-main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phrase-extract') diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp index e439bc934..c23fda489 100644 --- a/phrase-extract/extract-main.cpp +++ b/phrase-extract/extract-main.cpp @@ -447,7 +447,7 @@ void ExtractTask::extract(SentenceAlignment &sentence) wordNextOrient = getOrientWordModel(sentence, m_options.isWordType(), connectedLeftTopN, connectedRightTopN, endF, startF, endE, startE, 0, countF, -1, <, &ge); orientationInfo += getOrientString(wordPrevOrient, m_options.isWordType()) + " " + getOrientString(wordNextOrient, m_options.isWordType()); // if(m_options.isAllModelsOutputFlag()) - // " | | "; + // " | | "; } addPhrase(sentence, startE, endE, startF, endF, orientationInfo); } @@ -561,12 +561,12 @@ REO_POS getOrientPhraseModel (SentenceAlignment & sentence, REO_MODEL_TYPE model connectedLeftTop = false; for(int indexF=startF-2*unit; (*ge)(indexF, zero) && !connectedLeftTop; indexF=indexF-unit) if ((connectedLeftTop = ((it = inBottomRight.find(startE - unit)) != inBottomRight.end() && - it->second.find(indexF) != it->second.end()))) + it->second.find(indexF) != it->second.end()))) return DRIGHT; connectedRightTop = false; for(int indexF=endF+2*unit; (*lt)(indexF, countF) && !connectedRightTop; indexF=indexF+unit) if ((connectedRightTop = ((it = inBottomLeft.find(startE - unit)) != inBottomLeft.end() && - it->second.find(indexF) != it->second.end()))) + it->second.find(indexF) != it->second.end()))) return DLEFT; return UNKNOWN; } -- cgit v1.2.3