diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2015-11-02 03:00:37 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2015-11-02 03:00:37 +0300 |
commit | f38976aba07e0dbca74f9b824b28add486889b2a (patch) | |
tree | 54d2a68a9da692ba4e8fc91d339523e9874acd66 /moses/DecodeStepTranslation.cpp | |
parent | 8424fb6e2ad8e9d15471c7e610bce85082610a41 (diff) |
daily automatic beautifier
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index 25d160626..c4a4fd0c4 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -100,14 +100,14 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO } } -void +void DecodeStepTranslation:: ProcessInitialTranslation(InputType const& source, - PartialTranslOptColl &outputPartialTranslOptColl, - size_t startPos, size_t endPos, - bool adhereTableLimit, - InputPath const& inputPath, - TargetPhraseCollection::shared_ptr phraseColl) const + PartialTranslOptColl &outputPartialTranslOptColl, + size_t startPos, size_t endPos, + bool adhereTableLimit, + InputPath const& inputPath, + TargetPhraseCollection::shared_ptr phraseColl) const { const PhraseDictionary* phraseDictionary = GetPhraseDictionaryFeature(); const size_t tableLimit = phraseDictionary->GetTableLimit(); @@ -117,12 +117,12 @@ ProcessInitialTranslation(InputType const& source, if (phraseColl != NULL) { IFVERBOSE(3) { if(source.GetType() == SentenceInput) - TRACE_ERR("[" << source.GetSubString(range) << "; " - << startPos << "-" << endPos << "]\n"); + TRACE_ERR("[" << source.GetSubString(range) << "; " + << startPos << "-" << endPos << "]\n"); else TRACE_ERR("[" << startPos << "-" << endPos << "]" << std::endl); } - + TargetPhraseCollection::const_iterator iterTargetPhrase, iterEnd; iterEnd = (!adhereTableLimit || tableLimit == 0 || phraseColl->GetSize() < tableLimit) ? phraseColl->end() : phraseColl->begin() + tableLimit; @@ -140,13 +140,13 @@ ProcessInitialTranslation(InputType const& source, } } -void +void DecodeStepTranslation:: ProcessInitialTransLEGACY(InputType const& source, - PartialTranslOptColl &outputPartialTranslOptColl, - size_t startPos, size_t endPos, - bool adhereTableLimit, - InputPathList const& inputPathList) const + PartialTranslOptColl &outputPartialTranslOptColl, + size_t startPos, size_t endPos, + bool adhereTableLimit, + InputPathList const& inputPathList) const { const PhraseDictionary* phraseDictionary = GetPhraseDictionaryFeature(); const size_t tableLimit = phraseDictionary->GetTableLimit(); @@ -158,12 +158,12 @@ ProcessInitialTransLEGACY(InputType const& source, if (phraseColl != NULL) { IFVERBOSE(3) { if(source.GetType() == SentenceInput) - TRACE_ERR("[" << source.GetSubString(range) << "; " - << startPos << "-" << endPos << "]\n"); + TRACE_ERR("[" << source.GetSubString(range) << "; " + << startPos << "-" << endPos << "]\n"); else TRACE_ERR("[" << startPos << "-" << endPos << "]" << std::endl); } - + const std::vector<Phrase> &sourcePhrases = phraseColl->GetSourcePhrases(); TargetPhraseCollection::const_iterator iterTargetPhrase, iterEnd; |