diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-03-15 23:38:31 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-03-15 23:38:31 +0300 |
commit | ad805c133bb61dac3b9d1555d221db71739d90d4 (patch) | |
tree | 1937e47b012c7e97df6308627c805ec5e514ed17 /moses/IOWrapper.h | |
parent | 16d8ef67f0f2c350dbdc071a5102084d48c44600 (diff) |
Instances of InputType (and derived classes) now know which TranslationTask (if any) created them.
This is a first step towards providing phrase tables etc. access to context information etc.
associated with specific translation tasks.
Diffstat (limited to 'moses/IOWrapper.h')
-rw-r--r-- | moses/IOWrapper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/IOWrapper.h b/moses/IOWrapper.h index 724181312..dd9c9d785 100644 --- a/moses/IOWrapper.h +++ b/moses/IOWrapper.h @@ -1,3 +1,4 @@ +// -*- c++ -*- // $Id$ /*********************************************************************** @@ -62,7 +63,7 @@ class ScoreComponentCollection; class Hypothesis; class ChartHypothesis; class Factor; - +class TranslationTask; namespace Syntax { struct SHyperedge; @@ -105,7 +106,8 @@ public: ~IOWrapper(); Moses::InputType* GetInput(Moses::InputType *inputType); - bool ReadInput(Moses::InputTypeEnum inputType, Moses::InputType*& source); + bool ReadInput(Moses::InputTypeEnum inputType, + Moses::InputType*& source, TranslationTask const* ttask=NULL); Moses::OutputCollector *GetSingleBestOutputCollector() { return m_singleBestOutputCollector.get(); |