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-11-11 00:44:48 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 00:44:48 +0300
commit806f888c10ac02eba67454d55aa0880464e4f284 (patch)
tree37127868f28945a81b8a6be0bf8bab0c77841e7b /moses/Hypothesis.cpp
parent2ae2aee953011a87ed565ceeecba0f3455b24397 (diff)
Moved placeholder factor variable from StaticData to InputOptions.
Diffstat (limited to 'moses/Hypothesis.cpp')
-rw-r--r--moses/Hypothesis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/Hypothesis.cpp b/moses/Hypothesis.cpp
index 6fa85af65..ad3f6ab4b 100644
--- a/moses/Hypothesis.cpp
+++ b/moses/Hypothesis.cpp
@@ -473,8 +473,8 @@ OutputSurface(std::ostream &out, const Hypothesis &edge,
if (reportAllFactors == true) {
out << phrase;
} else {
- FactorType placeholderFactor = StaticData::Instance().GetPlaceholderFactor();
-
+ FactorType placeholderFactor = StaticData::Instance().options().input.placeholder_factor;
+
std::map<size_t, const Factor*> placeholders;
if (placeholderFactor != NOT_FOUND) {
// creates map of target position -> factor for placeholders