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:
authorMosesAdmin <moses-support-owner@mit.edu>2016-02-04 03:00:42 +0300
committerMosesAdmin <moses-support-owner@mit.edu>2016-02-04 03:00:42 +0300
commit114ed0133e2236f742cbb47ab9b760bbe327c490 (patch)
tree070000a80cf492141fda6e3928a36110b25856c1 /phrase-extract
parent5de88ec1a4e2ded2d73e4e7c0f386f66cd3671c1 (diff)
daily automatic beautifier
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/extract-main.cpp5
-rw-r--r--phrase-extract/extract-rules-main.cpp2
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) {