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>2020-10-04 22:04:14 +0300
committerHieu Hoang <hieuhoang@gmail.com>2020-10-04 22:04:14 +0300
commit88e7ab5ec427b165ff4ac38934d227e24aae413d (patch)
treedb77eb9917174ea6af4d8f0039a96632dd789f33
parent0216957a371e964a53aaa17372a727bfe8eeb6e7 (diff)
move InitializeForInput to Init
-rw-r--r--moses2/ManagerBase.cpp2
-rw-r--r--moses2/PhraseBased/Manager.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/moses2/ManagerBase.cpp b/moses2/ManagerBase.cpp
index 705c766d8..41d3a0394 100644
--- a/moses2/ManagerBase.cpp
+++ b/moses2/ManagerBase.cpp
@@ -31,8 +31,6 @@ ManagerBase::ManagerBase(System &sys, const TranslationTask &task,
,m_hypoRecycle(NULL)
,m_input(NULL)
{
- //cerr << "ManagerBase::ManagerBase " << m_input->Debug(sys) << endl << flush;
- system.featureFunctions.InitializeForInput(*m_input);
}
ManagerBase::~ManagerBase()
diff --git a/moses2/PhraseBased/Manager.cpp b/moses2/PhraseBased/Manager.cpp
index a317385d9..3d6391b2b 100644
--- a/moses2/PhraseBased/Manager.cpp
+++ b/moses2/PhraseBased/Manager.cpp
@@ -62,7 +62,8 @@ void Manager::Init()
FactorCollection &vocab = system.GetVocab();
//TODO: need option to choose Sentence vs SentenceWithCandidates
m_input = Moses2::SentenceWithCandidates::CreateFromString(GetPool(), vocab, system, m_inputStr);
- cerr << "Manager::Init: " << m_input->Debug(sys) << endl << flush;
+ cerr << "Manager::Init: " << m_input->Debug(system) << endl << flush;
+ system.featureFunctions.InitializeForInput(*m_input);
m_bitmaps = new Bitmaps(GetPool());