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-28 15:45:50 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-28 15:45:50 +0300
commit617f331833704a1c31e2a474952e70b149590a8a (patch)
treec4a316c1b5b2eca26defb284f5b800810764ce1d /moses/Hypothesis.cpp
parent951bebb037ad69715dd8c0d7e9197cc3c8ff90a6 (diff)
note to self in case i forget again in future
Diffstat (limited to 'moses/Hypothesis.cpp')
-rw-r--r--moses/Hypothesis.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/moses/Hypothesis.cpp b/moses/Hypothesis.cpp
index c6a248419..1b807f388 100644
--- a/moses/Hypothesis.cpp
+++ b/moses/Hypothesis.cpp
@@ -567,6 +567,10 @@ size_t Hypothesis::hash() const
size_t seed;
// coverage
+ // NOTE from Hieu - we could make bitmap comparison here and in operator== compare the pointers since the bitmaps come from a factory.
+ // Same coverage is guaranteed to have the same bitmap. However, this make the decoding algorithm non-deterministic as the order
+ // of hypo extension can be different. This causes several regression tests to break. Since the speedup is minimal, I'm gonna leave
+ // it comparing the actual bitmaps
seed = m_sourceCompleted.hash();
// states