diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-01 08:27:27 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-01 08:27:27 +0400 |
commit | 2f8fdecd51d465f687382c15e93f5a744510f179 (patch) | |
tree | e7f4d68d7362c1b7793b6c7eadec377dff6d8803 | |
parent | 5d517ded747e8904570755bbefb32b9561795b26 (diff) |
deleted duplicate fn
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@443 1f5c12ca-751b-0410-a591-d2e778427230
-rwxr-xr-x | moses/src/Hypothesis.cpp | 2 | ||||
-rwxr-xr-x | moses/src/TranslationOption.h | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/moses/src/Hypothesis.cpp b/moses/src/Hypothesis.cpp index 98e5e546c..1bbb228f1 100755 --- a/moses/src/Hypothesis.cpp +++ b/moses/src/Hypothesis.cpp @@ -68,7 +68,7 @@ Hypothesis::Hypothesis(const Hypothesis &prevHypo, const TranslationOption &tran , m_sourceInput (prevHypo.m_sourceInput) , m_currSourceWordsRange (transOpt.GetSourceWordsRange()) , m_currTargetWordsRange ( prevHypo.m_currTargetWordsRange.GetEndPos() + 1 - ,prevHypo.m_currTargetWordsRange.GetEndPos() + transOpt.GetPhrase().GetSize()) + ,prevHypo.m_currTargetWordsRange.GetEndPos() + transOpt.GetTargetPhrase().GetSize()) , m_totalScore(0.0f) , m_futureScore(0.0f) , m_wordDeleted(false) diff --git a/moses/src/TranslationOption.h b/moses/src/TranslationOption.h index 9b347c910..99acf69d8 100755 --- a/moses/src/TranslationOption.h +++ b/moses/src/TranslationOption.h @@ -134,14 +134,6 @@ public: { return m_scoreTrans + m_scoreGen + m_futureScore; } - /*** - * return target phrase - */ - inline const Phrase& GetPhrase() const - { - return m_phrase; - } - /*** * returns true if the source phrase translates into nothing */ |