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:
authorHieu Hoang <hieuhoang@gmail.com>2013-07-05 02:38:18 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-07-05 02:38:18 +0400
commit574d186708f2a4b0aa31a32725e8f13a63b2e09c (patch)
tree998ce313872a6dcb996e0daa149d91d866735cfd /moses/TranslationOptionCollectionText.cpp
parent0efcf64c28adb904367251cb036a7f16e1e4f834 (diff)
beautify
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r--moses/TranslationOptionCollectionText.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp
index 50803262f..f0979e748 100644
--- a/moses/TranslationOptionCollectionText.cpp
+++ b/moses/TranslationOptionCollectionText.cpp
@@ -48,11 +48,10 @@ TranslationOptionCollectionText::TranslationOptionCollectionText(Sentence const
if (range.GetNumWordsCovered() == 1) {
InputLatticeNode *node = new InputLatticeNode(subphrase, range, NULL);
vec.push_back(node);
- }
- else {
- const InputLatticeNode &prevNode = GetInputLatticeNode(startPos, endPos - 1);
- InputLatticeNode *node = new InputLatticeNode(subphrase, range, &prevNode);
- vec.push_back(node);
+ } else {
+ const InputLatticeNode &prevNode = GetInputLatticeNode(startPos, endPos - 1);
+ InputLatticeNode *node = new InputLatticeNode(subphrase, range, &prevNode);
+ vec.push_back(node);
}
}
}
@@ -190,20 +189,19 @@ void TranslationOptionCollectionText::CreateTranslationOptionsForRange(
const PhraseDictionary &phraseDictionary = *translateStep->GetPhraseDictionaryFeature();
const TargetPhraseCollection *targetPhrases = inputLatticeNode.GetTargetPhrases(phraseDictionary);
translateStep->Process(inputPartialTranslOpt
- , *decodeStep
- , *newPtoc
- , this
- , adhereTableLimit
- , *sourcePhrase
- , targetPhrases);
- }
- else {
+ , *decodeStep
+ , *newPtoc
+ , this
+ , adhereTableLimit
+ , *sourcePhrase
+ , targetPhrases);
+ } else {
decodeStep->Process(inputPartialTranslOpt
- , *decodeStep
- , *newPtoc
- , this
- , adhereTableLimit
- , *sourcePhrase);
+ , *decodeStep
+ , *newPtoc
+ , this
+ , adhereTableLimit
+ , *sourcePhrase);
}
}