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:
authorHieu Hoang <hieu@hoang.co.uk>2013-08-08 18:03:01 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-08 18:03:01 +0400
commita60bbbf892c982c5a93549142166db0d654c7e11 (patch)
tree74d079d39207e108abd42fb852451046bee9adc9 /moses/TranslationOption.h
parent88f888f5344b51161ab66afc53033eb8c665d3fd (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.h4
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;