From 0804f69776fd0ea26be7ed3a6cc8218db28ec985 Mon Sep 17 00:00:00 2001 From: MosesAdmin Date: Thu, 5 Nov 2015 00:00:36 +0000 Subject: [PATCH] daily automatic beautifier --- moses/xmlrpc-c.h | 5 ++++- phrase-extract/extract-main.cpp | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/moses/xmlrpc-c.h b/moses/xmlrpc-c.h index 6f85a189c..4a8a3d0c0 100644 --- a/moses/xmlrpc-c.h +++ b/moses/xmlrpc-c.h @@ -1,5 +1,8 @@ #ifdef HAVE_XMLRPC_C #include #else -namespace xmlrpc_c { class value; } +namespace xmlrpc_c +{ +class value; +} #endif 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; }