mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-04 01:45:52 +03:00
39 lines
900 B
C++
39 lines
900 B
C++
#pragma once
|
|
|
|
#include <boost/smart_ptr/shared_ptr.hpp>
|
|
#include "moses/ThreadPool.h"
|
|
#include "moses/ChartManager.h"
|
|
#include "moses/HypergraphOutput.h"
|
|
|
|
namespace Moses
|
|
{
|
|
class InputType;
|
|
class OutputCollector;
|
|
class IOWrapper;
|
|
|
|
/**
|
|
* Translates a sentence.
|
|
**/
|
|
class TranslationTaskChart : public Moses::Task
|
|
{
|
|
public:
|
|
TranslationTaskChart(Moses::InputType *source, IOWrapper &ioWrapper,
|
|
boost::shared_ptr<Moses::HypergraphOutput<Moses::ChartManager> > hypergraphOutput);
|
|
|
|
~TranslationTaskChart();
|
|
|
|
void Run();
|
|
|
|
private:
|
|
// Non-copyable: copy constructor and assignment operator not implemented.
|
|
TranslationTaskChart(const TranslationTaskChart &);
|
|
TranslationTaskChart &operator=(const TranslationTaskChart &);
|
|
|
|
Moses::InputType *m_source;
|
|
IOWrapper &m_ioWrapper;
|
|
boost::shared_ptr<Moses::HypergraphOutput<Moses::ChartManager> > m_hypergraphOutput;
|
|
};
|
|
|
|
} // namespace
|
|
|