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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-12-07 19:07:11 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-07 19:07:11 +0300
commitc4e45fb128e096f255a624b57b7826febdf06f2e (patch)
tree74455d64b0e45877c91dc2488838cfe01732b224 /moses/Incremental.cpp
parent2be2481feb2d68d6e4ba366d06fcfa51f7ff664e (diff)
Code cleanup.
Diffstat (limited to 'moses/Incremental.cpp')
-rw-r--r--moses/Incremental.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/Incremental.cpp b/moses/Incremental.cpp
index 07096fc18..bc1ed8a68 100644
--- a/moses/Incremental.cpp
+++ b/moses/Incremental.cpp
@@ -329,7 +329,7 @@ OutputNBestList(OutputCollector *collector,
{
const StaticData &staticData = StaticData::Instance();
const std::vector<Moses::FactorType> &outputFactorOrder
- = staticData.GetOutputFactorOrder();
+ = options().output.factor_order;
std::ostringstream out;
// wtf? copied from the original OutputNBestList
@@ -519,7 +519,7 @@ void Manager::OutputBestHypo(OutputCollector *collector, search::Applied applied
"Output phrase should have contained at least 2 words (beginning and end-of-sentence)");
outPhrase.RemoveWord(0);
outPhrase.RemoveWord(outPhrase.GetSize() - 1);
- out << outPhrase.GetStringRep(StaticData::Instance().GetOutputFactorOrder());
+ out << outPhrase.GetStringRep(options().output.factor_order);
out << '\n';
collector->Write(translationId, out.str());