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/WordLattice.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/WordLattice.h')
-rw-r--r-- | moses/WordLattice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/WordLattice.h b/moses/WordLattice.h index 11a07976c..a8ae9466c 100644 --- a/moses/WordLattice.h +++ b/moses/WordLattice.h @@ -9,6 +9,8 @@ namespace Moses { +class TranslationTask; + /** An input to the decoder that represent a word lattice. * @todo why is this inherited from confusion net? */ @@ -20,7 +22,7 @@ private: std::vector<std::vector<int> > distances; public: - WordLattice(); + WordLattice(TranslationTask const* ttask); InputTypeEnum GetType() const { return WordLatticeInput; |