mosesdecoder/contrib/other-builds/moses2/TranslationTask.cpp
2015-12-08 16:01:37 +00:00

22 lines
365 B
C++

#include "TranslationTask.h"
#include "Search/Manager.h"
#include "Search/Hypothesis.h"
using namespace std;
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);
}