move InitializeForInput to Init

This commit is contained in:
Hieu Hoang 2020-10-04 12:04:14 -07:00
parent 0216957a37
commit 88e7ab5ec4
2 changed files with 2 additions and 3 deletions

View File

@ -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()

View File

@ -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());