mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
move InitializeForInput to Init
This commit is contained in:
parent
0216957a37
commit
88e7ab5ec4
@ -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()
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user