mosesdecoder/contrib/other-builds/moses2/System.cpp
2015-10-25 21:20:55 +00:00

27 lines
424 B
C++

/*
* System.cpp
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#include "System.h"
#include "PhraseTable.h"
#include "moses/Util.h"
System::System()
:m_ffStartInd(0)
{
PhraseTable *pt = new PhraseTable(m_ffStartInd);
pt->SetPtInd(m_phraseTables.size());
pt->Load(*this);
m_featureFunctions.push_back(pt);
m_phraseTables.push_back(pt);
}
System::~System() {
Moses::RemoveAllInColl(m_featureFunctions);
}