diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 23:36:32 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 23:36:32 +0400 |
commit | efc765ddff5c97c99aa314de0a0d9af4944a3688 (patch) | |
tree | d616dc8533400f30308acc22005f49a2e1ca2a2a /moses/TranslationOption.h | |
parent | c50cc18f36dd121b67da958d136b4a68d5d42830 (diff) |
implement Evaluate(inputpath, input) for chart translation options. Plumbing for lattice input
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r-- | moses/TranslationOption.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h index 10b4eca37..3bc1797bb 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -66,7 +66,7 @@ class TranslationOption protected: TargetPhrase m_targetPhrase; /*< output phrase when using this translation option */ - const Phrase *m_sourcePhrase; + const InputPath *m_inputPath; const WordsRange m_sourceWordsRange; /*< word position in the input that are covered by this translation option */ float m_futureScore; /*< estimate of total cost when using this translation option, includes language model probabilities */ @@ -94,9 +94,9 @@ public: } /** returns source phrase */ - const Phrase &GetSourcePhrase() const; + const InputPath &GetInputPath() const; - void SetSourcePhrase(const Phrase &sourcePhrase); + void SetInputPath(const InputPath &inputPath); /** whether source span overlaps with those of a hypothesis */ bool Overlap(const Hypothesis &hypothesis) const; |