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-13 03:02:04 +0300
committerMosesAdmin <moses-support-owner@mit.edu>2016-02-13 03:02:04 +0300
commitca5178b6845f4dd359d4b4adf87bba72a33f8a34 (patch)
tree59d6cd18f3155974c5e8d25a67dd0792b60b99f1 /phrase-extract
parent1659d6b4c8c0b2a261678c012b9eab32f8c7b296 (diff)
daily automatic beautifiermmt-merge
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/extract-main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp
index e4d074e15..193ef3479 100644
--- a/phrase-extract/extract-main.cpp
+++ b/phrase-extract/extract-main.cpp
@@ -303,7 +303,7 @@ int main(int argc, char* argv[])
SentenceAlignmentWithSyntax sentence
(targetLabelCollection, sourceLabelCollection,
- targetTopLabelCollection, sourceTopLabelCollection,
+ targetTopLabelCollection, sourceTopLabelCollection,
targetSyntax, false);
// cout << "read in: " << englishString << " & " << foreignString << " & " << alignmentString << endl;
//az: output src, tgt, and alingment line
@@ -740,11 +740,11 @@ string getOrientString(REO_POS orient, REO_MODEL_TYPE modelType)
}
return "";
}
-
+
bool ExtractTask::checkTargetConstituentBoundaries( const SentenceAlignmentWithSyntax &sentence,
- int startE, int endE, int startF, int endF,
- std::string &phrasePropertiesString)
+ int startE, int endE, int startF, int endF,
+ std::string &phrasePropertiesString)
{
ostringstream outextractstrPhrasePropertyTargetConstituentBoundariesLeft;
@@ -814,8 +814,8 @@ bool ExtractTask::checkTargetConstituentBoundaries( const SentenceAlignmentWithS
if ( (relaxedStartE != startE) || (relaxedEndE !=endE) ) {
const std::vector< SyntaxNode* >& startingNodes = sentence.targetTree.GetNodesByStartPosition(relaxedStartE);
- for ( std::vector< SyntaxNode* >::const_reverse_iterator iter = startingNodes.rbegin();
- (iter != startingNodes.rend() && !relaxedValidTargetConstituentBoundaries);
+ for ( std::vector< SyntaxNode* >::const_reverse_iterator iter = startingNodes.rbegin();
+ (iter != startingNodes.rend() && !relaxedValidTargetConstituentBoundaries);
++iter ) {
if ( (*iter)->end == relaxedEndE ) {
relaxedValidTargetConstituentBoundaries = true;
@@ -868,8 +868,8 @@ bool ExtractTask::checkTargetConstituentBoundaries( const SentenceAlignmentWithS
}
-void ExtractTask::addPhrase( const SentenceAlignmentWithSyntax &sentence,
- int startE, int endE, int startF, int endF,
+void ExtractTask::addPhrase( const SentenceAlignmentWithSyntax &sentence,
+ int startE, int endE, int startF, int endF,
const std::string &orientationInfo,
const std::string &phrasePropertiesString)
{