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 <hieuhoang@gmail.com>2015-10-14 12:37:51 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-14 12:37:51 +0300
commit9b9992671b020663b3d7529a02869d9c2b5a47f4 (patch)
treea1f38a335df2770a3b44f90dc946eb0e79bd2b54 /moses/ChartHypothesis.h
parent1a93fae9ac2950ef5da8698b4576ac11e9ba21cf (diff)
chart decoding uses unordered set
Diffstat (limited to 'moses/ChartHypothesis.h')
-rw-r--r--moses/ChartHypothesis.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/ChartHypothesis.h b/moses/ChartHypothesis.h
index 25216c04c..954a6fa3a 100644
--- a/moses/ChartHypothesis.h
+++ b/moses/ChartHypothesis.h
@@ -146,8 +146,6 @@ public:
// leftRightMost: 1=left, 2=right
void GetOutputPhrase(size_t leftRightMost, size_t numWords, Phrase &outPhrase) const;
- int RecombineCompare(const ChartHypothesis &compare) const;
-
void EvaluateWhenApplied();
void AddArc(ChartHypothesis *loserHypo);
@@ -214,6 +212,10 @@ public:
return m_winningHypo;
}
+ // for unordered_set in stack
+ size_t hash() const;
+ bool operator==(const ChartHypothesis& other) const;
+
TO_STRING();
}; // class ChartHypothesis