From 114ed0133e2236f742cbb47ab9b760bbe327c490 Mon Sep 17 00:00:00 2001 From: MosesAdmin Date: Thu, 4 Feb 2016 00:00:42 +0000 Subject: daily automatic beautifier --- phrase-extract/extract-main.cpp | 5 ++--- phrase-extract/extract-rules-main.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'phrase-extract') diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp index ef989fac6..0e77368f4 100644 --- a/phrase-extract/extract-main.cpp +++ b/phrase-extract/extract-main.cpp @@ -415,9 +415,8 @@ void ExtractTask::extract(SentenceAlignment &sentence) } // cout << "doing if for ( " << minF << "-" << maxF << ", " << startE << "," << endE << ")\n"; - if (!out_of_bounds || - ( m_options.isSingleWordHeuristicFlag() && (endE==startE) && (minF==maxF) )) // extraction of single word phrases even if inconsistent wrt. word alignment - { + if (!out_of_bounds || + ( m_options.isSingleWordHeuristicFlag() && (endE==startE) && (minF==maxF) )) { // extraction of single word phrases even if inconsistent wrt. word alignment // start point of source phrase may retreat over unaligned for(int startF=minF; ((startF>=0 && diff --git a/phrase-extract/extract-rules-main.cpp b/phrase-extract/extract-rules-main.cpp index 711918656..5ac90d1b1 100644 --- a/phrase-extract/extract-rules-main.cpp +++ b/phrase-extract/extract-rules-main.cpp @@ -347,7 +347,7 @@ int main(int argc, char* argv[]) SentenceAlignmentWithSyntax sentence (targetLabelCollection, sourceLabelCollection, - targetTopLabelCollection, sourceTopLabelCollection, + targetTopLabelCollection, sourceTopLabelCollection, options.targetSyntax, options.sourceSyntax); //az: output src, tgt, and alingment line if (options.onlyOutputSpanInfo) { -- cgit v1.2.3