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:
authorHieu Hoang <hieuhoang@gmail.com>2015-12-12 20:44:49 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-12-12 20:44:49 +0300
commit8908fdb9bdec69c3d2a669f2096cdb6abc04962f (patch)
tree87a654987bed0aac99985611efa9c8bff572260d /moses/ChartManager.cpp
parentca8064615720690b805cb71f5280a611921015d2 (diff)
parentb899ab8175d5bb3733aa65a0658633c86aa2e237 (diff)
Merge ../mosesdecoder into perf_moses2
Diffstat (limited to 'moses/ChartManager.cpp')
-rw-r--r--moses/ChartManager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/moses/ChartManager.cpp b/moses/ChartManager.cpp
index d83bc3a7d..374169e30 100644
--- a/moses/ChartManager.cpp
+++ b/moses/ChartManager.cpp
@@ -85,7 +85,7 @@ void ChartManager::Decode()
// create trans opt
m_translationOptionList.Clear();
m_parser.Create(range, m_translationOptionList);
- m_translationOptionList.ApplyThreshold();
+ m_translationOptionList.ApplyThreshold(options()->search.trans_opt_threshold);
const InputPath &inputPath = m_parser.GetInputPath(range);
m_translationOptionList.EvaluateWithSourceContext(m_source, inputPath);
@@ -291,13 +291,14 @@ void
ChartManager::
OutputSearchGraphAsHypergraph(std::ostream& out) const
{
- ChartSearchGraphWriterHypergraph writer(&out);
+ ChartSearchGraphWriterHypergraph writer(options(), &out);
WriteSearchGraph(writer);
}
void ChartManager::OutputSearchGraphMoses(std::ostream &outputSearchGraphStream) const
{
- ChartSearchGraphWriterMoses writer(&outputSearchGraphStream, m_source.GetTranslationId());
+ ChartSearchGraphWriterMoses writer(options(), &outputSearchGraphStream,
+ m_source.GetTranslationId());
WriteSearchGraph(writer);
}