mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
44 lines
571 B
C++
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);
|
|
}
|
|
|
|
}
|
|
}
|
|
|