diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-08-06 02:51:02 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-08-06 23:11:43 +0300 |
commit | 524109e2cabe5bd3ac693d3187e439885484a8c7 (patch) | |
tree | ed0bf9862bc6a50c327dd235efe3a038d2b0b2e2 /moses/RuleCube.cpp | |
parent | fc10ad4afb812200d7529256797a10438cfaf1f3 (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/RuleCube.cpp')
-rw-r--r-- | moses/RuleCube.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/RuleCube.cpp b/moses/RuleCube.cpp index 3a33ba5e5..f05d95270 100644 --- a/moses/RuleCube.cpp +++ b/moses/RuleCube.cpp @@ -44,7 +44,7 @@ RuleCube::RuleCube(const ChartTranslationOptions &transOpt, { RuleCubeItem *item = new RuleCubeItem(transOpt, allChartCells); m_covered.insert(item); - if (StaticData::Instance().GetCubePruningLazyScoring()) { + if (StaticData::Instance().options().cube.lazy_scoring) { item->EstimateScore(); } else { item->CreateHypothesis(transOpt, manager); @@ -92,7 +92,7 @@ void RuleCube::CreateNeighbor(const RuleCubeItem &item, int dimensionIndex, if (!result.second) { delete newItem; // already seen it } else { - if (StaticData::Instance().GetCubePruningLazyScoring()) { + if (StaticData::Instance().options().cube.lazy_scoring) { newItem->EstimateScore(); } else { newItem->CreateHypothesis(m_transOpt, manager); |