diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-08 22:23:26 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-08 22:23:26 +0400 |
commit | 85eae6b9f241fcc76913e6290c3235c120e0bbe6 (patch) | |
tree | 64b768e5d81f676cae5d71d375a6dfc1e0669dcb /moses/ChartManager.cpp | |
parent | 1743f7eeb296b219ce49932db39810139b6cbaae (diff) |
delete lineNumber variable from ChartManager. It should always be carried by the input sentence itself
Diffstat (limited to 'moses/ChartManager.cpp')
-rw-r--r-- | moses/ChartManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/ChartManager.cpp b/moses/ChartManager.cpp index c7abc697d..56bc8529d 100644 --- a/moses/ChartManager.cpp +++ b/moses/ChartManager.cpp @@ -42,12 +42,11 @@ extern bool g_mosesDebug; * \param source the sentence to be decoded * \param system which particular set of models to use. */ -ChartManager::ChartManager(size_t lineNumber,InputType const& source) +ChartManager::ChartManager(InputType const& source) :m_source(source) ,m_hypoStackColl(source, *this) ,m_start(clock()) ,m_hypothesisId(0) - ,m_lineNumber(lineNumber) ,m_parser(source, m_hypoStackColl) ,m_translationOptionList(StaticData::Instance().GetRuleLimit(), source) { @@ -294,7 +293,7 @@ void ChartManager::OutputSearchGraphAsHypergraph(std::ostream &outputSearchGraph } void ChartManager::OutputSearchGraphMoses(std::ostream &outputSearchGraphStream) const { - ChartSearchGraphWriterMoses writer(&outputSearchGraphStream, m_lineNumber); + ChartSearchGraphWriterMoses writer(&outputSearchGraphStream, m_source.GetTranslationId()); WriteSearchGraph(writer); } |