mosesdecoder/contrib/other-builds/moses2/TranslationTask.cpp
2015-12-10 20:49:30 +00:00

28 lines
389 B
C++

#include "TranslationTask.h"
#include "Search/Manager.h"
#include "Search/Hypothesis.h"
using namespace std;
namespace Moses2
{
TranslationTask::TranslationTask(System &system, const std::string &line)
{
m_mgr = new Manager(system, *this, line);
}
TranslationTask::~TranslationTask()
{
delete m_mgr;
}
void TranslationTask::Run()
{
m_mgr->Decode();
m_mgr->OutputBest(cout);
}
}