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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-03-15 23:38:31 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-03-15 23:38:31 +0300
commitad805c133bb61dac3b9d1555d221db71739d90d4 (patch)
tree1937e47b012c7e97df6308627c805ec5e514ed17 /moses/Sentence.h
parent16d8ef67f0f2c350dbdc071a5102084d48c44600 (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/Sentence.h')
-rw-r--r--moses/Sentence.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/Sentence.h b/moses/Sentence.h
index a415dbd57..0b6975b84 100644
--- a/moses/Sentence.h
+++ b/moses/Sentence.h
@@ -37,6 +37,7 @@ namespace Moses
class TranslationOption;
class TranslationOptionCollection;
class ChartTranslationOptions;
+ class TranslationTask;
struct XmlOption;
@@ -61,8 +62,9 @@ namespace Moses
public:
- Sentence();
- Sentence(size_t const transId, std::string const& stext);
+ Sentence(TranslationTask const* ttask);
+ Sentence(TranslationTask const* ttask, size_t const transId,
+ std::string const& stext);
~Sentence();
InputTypeEnum GetType() const {