diff options
Diffstat (limited to 'phrase-extract')
-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) { |