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:
authorhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-08-01 08:27:27 +0400
committerhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-08-01 08:27:27 +0400
commit2f8fdecd51d465f687382c15e93f5a744510f179 (patch)
treee7f4d68d7362c1b7793b6c7eadec377dff6d8803
parent5d517ded747e8904570755bbefb32b9561795b26 (diff)
deleted duplicate fn
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@443 1f5c12ca-751b-0410-a591-d2e778427230
-rwxr-xr-xmoses/src/Hypothesis.cpp2
-rwxr-xr-xmoses/src/TranslationOption.h8
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
*/