diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-28 21:06:36 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-28 21:06:36 +0400 |
commit | 600a188a4e49e176d469848123d0b0b3f00f368b (patch) | |
tree | 205815e7f3af424c96b13b726be693508194628c /moses/DecodeStepTranslation.cpp | |
parent | bddbdeec0448eabd260bb034262d53990846482e (diff) |
beautify
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index 2938a850a..98c877656 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -147,25 +147,25 @@ void DecodeStepTranslation::ProcessInitialTranslation( const WordsRange wordsRange(startPos, endPos); if (phraseColl != NULL) { - IFVERBOSE(3) { - if(StaticData::Instance().GetInputType() == SentenceInput) - TRACE_ERR("[" << source.GetSubString(wordsRange) << "; " << startPos << "-" << endPos << "]\n"); - else - TRACE_ERR("[" << startPos << "-" << endPos << "]" << std::endl); - } + IFVERBOSE(3) { + if(StaticData::Instance().GetInputType() == SentenceInput) + TRACE_ERR("[" << source.GetSubString(wordsRange) << "; " << 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; + TargetPhraseCollection::const_iterator iterTargetPhrase, iterEnd; + iterEnd = (!adhereTableLimit || tableLimit == 0 || phraseColl->GetSize() < tableLimit) ? phraseColl->end() : phraseColl->begin() + tableLimit; - for (iterTargetPhrase = phraseColl->begin() ; iterTargetPhrase != iterEnd ; ++iterTargetPhrase) { - const TargetPhrase &targetPhrase = **iterTargetPhrase; - TranslationOption *transOpt = new TranslationOption(wordsRange, targetPhrase); + for (iterTargetPhrase = phraseColl->begin() ; iterTargetPhrase != iterEnd ; ++iterTargetPhrase) { + const TargetPhrase &targetPhrase = **iterTargetPhrase; + TranslationOption *transOpt = new TranslationOption(wordsRange, targetPhrase); - outputPartialTranslOptColl.Add (transOpt); + outputPartialTranslOptColl.Add (transOpt); - VERBOSE(3,"\t" << targetPhrase << "\n"); - } - VERBOSE(3,std::endl); + VERBOSE(3,"\t" << targetPhrase << "\n"); + } + VERBOSE(3,std::endl); } } |