mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
27 lines
398 B
C++
27 lines
398 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, long translationId)
|
|
{
|
|
m_mgr = new Manager(system, *this, line, translationId);
|
|
}
|
|
|
|
TranslationTask::~TranslationTask()
|
|
{
|
|
delete m_mgr;
|
|
}
|
|
|
|
void TranslationTask::Run()
|
|
{
|
|
m_mgr->Decode();
|
|
}
|
|
|
|
}
|
|
|