diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-08 18:03:01 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-08 18:03:01 +0400 |
commit | a60bbbf892c982c5a93549142166db0d654c7e11 (patch) | |
tree | 74d079d39207e108abd42fb852451046bee9adc9 /moses/TranslationOption.h | |
parent | 88f888f5344b51161ab66afc53033eb8c665d3fd (diff) |
consistently set source phrase in translation options as soon as the trans opt is created
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r-- | moses/TranslationOption.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h index 270813567..8456b8437 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -96,9 +96,7 @@ public: /** returns source phrase */ const Phrase &GetSourcePhrase() const; - void SetSourcePhrase(const Phrase &sourcePhrase) { - m_sourcePhrase = &sourcePhrase; - } + void SetSourcePhrase(const Phrase &sourcePhrase); /** whether source span overlaps with those of a hypothesis */ bool Overlap(const Hypothesis &hypothesis) const; |