Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-10-10 16:19:02 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-10-10 16:19:02 +0400
commitd507af5b1dacac5d0b595c9c0878493cdb04dd1e (patch)
treedeccdc606ff4d36597c77faac6e3e24c9837d122 /moses/TranslationTask.h
parent4403bd5b3ce0e653105562ef630b5f503be5791e (diff)
TranslationTaskChart --> TranslationTask
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r--moses/TranslationTask.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h
index f0f237c35..698c7009c 100644
--- a/moses/TranslationTask.h
+++ b/moses/TranslationTask.h
@@ -4,6 +4,8 @@
#include "moses/ThreadPool.h"
#include "moses/Manager.h"
#include "moses/HypergraphOutput.h"
+#include "moses/Manager.h"
+#include "moses/ChartManager.h"
namespace Moses
{
@@ -26,6 +28,9 @@ public:
bool outputSearchGraphSLF,
boost::shared_ptr<Moses::HypergraphOutput<Moses::Manager> > hypergraphOutput);
+ TranslationTask(Moses::InputType *source, IOWrapper &ioWrapper,
+ boost::shared_ptr<Moses::HypergraphOutput<Moses::ChartManager> > hypergraphOutputChart);
+
~TranslationTask();
/** Translate one sentence
@@ -34,12 +39,16 @@ public:
private:
+ int m_pbOrChart; // 1=pb. 2=chart
Moses::InputType* m_source;
Moses::IOWrapper &m_ioWrapper;
bool m_outputSearchGraphSLF;
boost::shared_ptr<Moses::HypergraphOutput<Moses::Manager> > m_hypergraphOutput;
+ boost::shared_ptr<Moses::HypergraphOutput<Moses::ChartManager> > m_hypergraphOutputChart;
+ void RunPb();
+ void RunChart();
};