diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-12 20:35:59 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-12 20:35:59 +0300 |
commit | 20959b866045163ed3178f71b2d87a62462ec343 (patch) | |
tree | 20e3a4b7a436cb8c2557df8f98c4e8075b56e7f7 /moses/Hypothesis.h | |
parent | 1d0f7fcf14450c1f6152e2aa144eecbc1332c634 (diff) |
redo state API for simple distortion and KenLM. Regression failure with KenLM
Diffstat (limited to 'moses/Hypothesis.h')
-rw-r--r-- | moses/Hypothesis.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/moses/Hypothesis.h b/moses/Hypothesis.h index e8c1edcb2..856ce9b1f 100644 --- a/moses/Hypothesis.h +++ b/moses/Hypothesis.h @@ -197,8 +197,6 @@ public: return m_sourceCompleted.IsComplete(); } - int RecombineCompare(const Hypothesis &compare) const; - void GetOutputPhrase(Phrase &out) const; void ToStream(std::ostream& out) const { @@ -321,23 +319,6 @@ struct CompareHypothesisTotalScore { #define FREEHYPO(hypo) delete hypo #endif -/** defines less-than relation on hypotheses. -* The particular order is not important for us, we need just to figure out -* which hypothesis are equal based on: -* the last n-1 target words are the same -* and the covers (source words translated) are the same -* Directly using RecombineCompare is unreliable because the Compare methods -* of some states are based on archictecture-dependent pointer comparisons. -* That's why we use the hypothesis IDs instead. -*/ -class HypothesisRecombinationOrderer -{ -public: - bool operator()(const Hypothesis* hypoA, const Hypothesis* hypoB) const { - return (hypoA->RecombineCompare(*hypoB) < 0); - } -}; - class HypothesisRecombinationUnordered { public: |