mosesdecoder/contrib/other-builds/moses2/SCFG/Manager.cpp
2016-02-29 15:51:17 +00:00

44 lines
571 B
C++

/*
* Manager.cpp
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#include <boost/foreach.hpp>
#include <vector>
#include <sstream>
#include "Manager.h"
#include "../Sentence.h"
using namespace std;
namespace Moses2
{
namespace SCFG
{
Manager::Manager(System &sys, const TranslationTask &task, const std::string &inputStr, long translationId)
:ManagerBase(sys, task, inputStr, translationId)
{
}
Manager::~Manager()
{
}
void Manager::Decode()
{
// init pools etc
InitPools();
ParseInput(true);
m_stacks.Init(*this, GetInput().GetSize() + 1);
}
}
}