diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-17 22:14:24 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-17 22:14:24 +0300 |
commit | 563552aea6c6de060ef36788609867ef6bd851fb (patch) | |
tree | 9902233443b38d36a8e930efc355a5e58a7f46bc /moses/FF/TargetNgramFeature.h | |
parent | 0c3fea4014efc8499b0d43fb93d124d27dc9449a (diff) |
clean up states after API change
Diffstat (limited to 'moses/FF/TargetNgramFeature.h')
-rw-r--r-- | moses/FF/TargetNgramFeature.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/moses/FF/TargetNgramFeature.h b/moses/FF/TargetNgramFeature.h index 1d31c4b30..7826cdf4f 100644 --- a/moses/FF/TargetNgramFeature.h +++ b/moses/FF/TargetNgramFeature.h @@ -25,7 +25,6 @@ public: const std::vector<Word> GetWords() const { return m_words; } - virtual int Compare(const FFState& other) const; size_t hash() const; virtual bool operator==(const FFState& other) const; @@ -158,25 +157,6 @@ public: return m_contextSuffix; } - int Compare(const FFState& o) const { - const TargetNgramChartState &other = - static_cast<const TargetNgramChartState &>( o ); - - // prefix - if (m_startPos > 0) { // not for "<s> ..." - int ret = GetPrefix().Compare(other.GetPrefix()); - if (ret != 0) - return ret; - } - - if (m_endPos < m_inputSize - 1) { // not for "... </s>" - int ret = GetSuffix().Compare(other.GetSuffix()); - if (ret != 0) - return ret; - } - return 0; - } - size_t hash() const { // not sure if this is correct size_t ret; |