diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2016-02-04 03:00:42 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2016-02-04 03:00:42 +0300 |
commit | 114ed0133e2236f742cbb47ab9b760bbe327c490 (patch) | |
tree | 070000a80cf492141fda6e3928a36110b25856c1 | |
parent | 5de88ec1a4e2ded2d73e4e7c0f386f66cd3671c1 (diff) |
daily automatic beautifier
-rw-r--r-- | phrase-extract/extract-main.cpp | 5 | ||||
-rw-r--r-- | phrase-extract/extract-rules-main.cpp | 2 |
2 files changed, 3 insertions, 4 deletions
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) { |