This commit is contained in:
Ales Tamchyna 2015-01-06 14:11:47 +01:00
parent 221d99ff8f
commit aa39660a0a

View File

@ -12,7 +12,6 @@ using namespace std;
VWPredictor::VWPredictor(const string &modelFile, const string &vwOptions) VWPredictor::VWPredictor(const string &modelFile, const string &vwOptions)
{ {
m_shared = true;
m_VWInstance = VW::initialize(vwOptions + " -i " + modelFile); m_VWInstance = VW::initialize(vwOptions + " -i " + modelFile);
m_sharedVwInstance = false; m_sharedVwInstance = false;
m_ex = new ::ezexample(m_VWInstance, false); m_ex = new ::ezexample(m_VWInstance, false);
@ -24,7 +23,6 @@ VWPredictor::VWPredictor(vw * instance, int index)
m_VWInstance = instance; m_VWInstance = instance;
m_sharedVwInstance = true; m_sharedVwInstance = true;
m_ex = new ::ezexample(m_VWInstance, false); m_ex = new ::ezexample(m_VWInstance, false);
m_shared = true;
m_index = index; m_index = index;
m_isFirstSource = m_isFirstTarget = true; m_isFirstSource = m_isFirstTarget = true;
} }