mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
27 lines
448 B
C++
27 lines
448 B
C++
/*
|
|
* StaticData.cpp
|
|
*
|
|
* Created on: 23 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#include "StaticData.h"
|
|
#include "PhraseTable.h"
|
|
#include "moses/Util.h"
|
|
|
|
StaticData::StaticData()
|
|
: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);
|
|
}
|
|
|
|
StaticData::~StaticData() {
|
|
Moses::RemoveAllInColl(m_featureFunctions);
|
|
}
|
|
|