diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-11 13:12:54 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-11 16:52:48 +0300 |
commit | 65f4f1f92af3d645b1dfc2f161bbcf47bdce1402 (patch) | |
tree | d24edefd5cbe1e954021958b5214471c29c96a04 /moses/ChartManager.cpp | |
parent | 40ed3df9cb513681569a2fcde32a5215c38253f3 (diff) |
Code cleanup and refactoring.
Diffstat (limited to 'moses/ChartManager.cpp')
-rw-r--r-- | moses/ChartManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/moses/ChartManager.cpp b/moses/ChartManager.cpp index 1e07910a9..ba58a010e 100644 --- a/moses/ChartManager.cpp +++ b/moses/ChartManager.cpp @@ -87,7 +87,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); @@ -293,13 +293,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); } |