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 <hieu@hoang.co.uk>2013-08-07 17:18:12 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-07 17:18:12 +0400
commit441acf15e6a96f7d063d9b14bde2ee502e758c58 (patch)
tree681b91441a8e5067f85d0d1392f9c33aa0acac09 /moses/TranslationOptionCollectionConfusionNet.cpp
parent5eef91c0ea336576b47c5fc0e1de2502be3b65a2 (diff)
beautify
Diffstat (limited to 'moses/TranslationOptionCollectionConfusionNet.cpp')
-rw-r--r--moses/TranslationOptionCollectionConfusionNet.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/TranslationOptionCollectionConfusionNet.cpp b/moses/TranslationOptionCollectionConfusionNet.cpp
index 5c58c3f3c..f1c3b1434 100644
--- a/moses/TranslationOptionCollectionConfusionNet.cpp
+++ b/moses/TranslationOptionCollectionConfusionNet.cpp
@@ -192,7 +192,7 @@ void TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLe
if ((StaticData::Instance().GetXmlInputType() != XmlExclusive) || !HasXmlOptionsOverlappingRange(startPos,endPos)) {
Phrase *sourcePhrase = NULL; // can't initialise with substring, in case it's confusion network
- InputPathList &inputPathList = GetInputPathList(startPos, endPos);
+ InputPathList &inputPathList = GetInputPathList(startPos, endPos);
// partial trans opt stored in here
PartialTranslOptColl* oldPtoc = new PartialTranslOptColl;
@@ -225,21 +225,20 @@ void TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLe
if (transStep) {
transStep->ProcessLegacy(inputPartialTranslOpt
+ , *decodeStep
+ , *newPtoc
+ , this
+ , adhereTableLimit
+ , *sourcePhrase);
+ } else {
+ CHECK(genStep);
+ genStep->Process(inputPartialTranslOpt
, *decodeStep
, *newPtoc
, this
, adhereTableLimit
, *sourcePhrase);
}
- else {
- CHECK(genStep);
- genStep->Process(inputPartialTranslOpt
- , *decodeStep
- , *newPtoc
- , this
- , adhereTableLimit
- , *sourcePhrase);
- }
}
// last but 1 partial trans not required anymore