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/Syntax
parent2ae2aee953011a87ed565ceeecba0f3455b24397 (diff)
Moved placeholder factor variable from StaticData to InputOptions.
Diffstat (limited to 'moses/Syntax')
-rw-r--r--moses/Syntax/KBestExtractor.cpp4
-rw-r--r--moses/Syntax/SHyperedge.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/moses/Syntax/KBestExtractor.cpp b/moses/Syntax/KBestExtractor.cpp
index 01db53b68..84e9d5e44 100644
--- a/moses/Syntax/KBestExtractor.cpp
+++ b/moses/Syntax/KBestExtractor.cpp
@@ -74,8 +74,8 @@ void KBestExtractor::Extract(
// Generate the target-side yield of the derivation d.
Phrase KBestExtractor::GetOutputPhrase(const Derivation &d)
{
- FactorType placeholderFactor = StaticData::Instance().GetPlaceholderFactor();
-
+ FactorType placeholderFactor = StaticData::Instance().options().input.placeholder_factor;
+
Phrase ret(ARRAY_SIZE_INCR);
const TargetPhrase &phrase = *(d.edge->shyperedge.label.translation);
diff --git a/moses/Syntax/SHyperedge.cpp b/moses/Syntax/SHyperedge.cpp
index 0260492c8..75dab7b39 100644
--- a/moses/Syntax/SHyperedge.cpp
+++ b/moses/Syntax/SHyperedge.cpp
@@ -11,8 +11,8 @@ namespace Syntax
Phrase GetOneBestTargetYield(const SHyperedge &h)
{
- FactorType placeholderFactor = StaticData::Instance().GetPlaceholderFactor();
-
+ FactorType placeholderFactor = StaticData::Instance().options().input.placeholder_factor;
+
Phrase ret(ARRAY_SIZE_INCR);
const AlignmentInfo::NonTermIndexMap &targetToSourceMap =