diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-12-14 16:18:15 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-12-14 16:18:15 +0300 |
commit | ffaf24419d0c5ffc48fe3313c14dadb257cd00ec (patch) | |
tree | ceceffeafa575070492a76e67d78de6c267f630e /moses/ChartManager.cpp | |
parent | b7d261088b9db148969c33e878f48a944baee8cd (diff) | |
parent | 375d9f7cc8561ed13f4ffdfa58111686dc961cb4 (diff) |
Merge ../mosesdecoder into perf_moses2
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 374169e30..b7920b614 100644 --- a/moses/ChartManager.cpp +++ b/moses/ChartManager.cpp @@ -34,6 +34,7 @@ #include "moses/OutputCollector.h" #include "moses/ChartKBestExtractor.h" #include "moses/HypergraphOutput.h" +#include "moses/TranslationTask.h" using namespace std; @@ -50,7 +51,7 @@ ChartManager::ChartManager(ttasksptr const& ttask) , m_start(clock()) , m_hypothesisId(0) , m_parser(ttask, m_hypoStackColl) - , m_translationOptionList(StaticData::Instance().GetRuleLimit(), m_source) + , m_translationOptionList(ttask->options()->syntax.rule_limit, m_source) { } ChartManager::~ChartManager() @@ -297,8 +298,8 @@ OutputSearchGraphAsHypergraph(std::ostream& out) const void ChartManager::OutputSearchGraphMoses(std::ostream &outputSearchGraphStream) const { - ChartSearchGraphWriterMoses writer(options(), &outputSearchGraphStream, - m_source.GetTranslationId()); + ChartSearchGraphWriterMoses writer(options(), &outputSearchGraphStream, + m_source.GetTranslationId()); WriteSearchGraph(writer); } |