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-08-06 02:51:02 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-08-06 23:11:43 +0300
commit524109e2cabe5bd3ac693d3187e439885484a8c7 (patch)
treeed0bf9862bc6a50c327dd235efe3a038d2b0b2e2 /moses/ChartHypothesisCollection.cpp
parentfc10ad4afb812200d7529256797a10438cfaf1f3 (diff)
Reorganisation of options.
The purpose of this effort is to have options local to the individual translation task, so that they can be changed in the running system in a multi-threaded system.
Diffstat (limited to 'moses/ChartHypothesisCollection.cpp')
-rw-r--r--moses/ChartHypothesisCollection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartHypothesisCollection.cpp b/moses/ChartHypothesisCollection.cpp
index d53211f34..42717c261 100644
--- a/moses/ChartHypothesisCollection.cpp
+++ b/moses/ChartHypothesisCollection.cpp
@@ -38,8 +38,8 @@ ChartHypothesisCollection::ChartHypothesisCollection()
const StaticData &staticData = StaticData::Instance();
m_beamWidth = staticData.GetBeamWidth();
- m_maxHypoStackSize = staticData.GetMaxHypoStackSize();
- m_nBestIsEnabled = staticData.IsNBestEnabled();
+ m_maxHypoStackSize = staticData.options().search.stack_size;
+ m_nBestIsEnabled = staticData.options().nbest.enabled;
m_bestScore = -std::numeric_limits<float>::infinity();
}