diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-28 15:45:50 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-28 15:45:50 +0300 |
commit | 617f331833704a1c31e2a474952e70b149590a8a (patch) | |
tree | c4a316c1b5b2eca26defb284f5b800810764ce1d /moses/Hypothesis.cpp | |
parent | 951bebb037ad69715dd8c0d7e9197cc3c8ff90a6 (diff) |
note to self in case i forget again in future
Diffstat (limited to 'moses/Hypothesis.cpp')
-rw-r--r-- | moses/Hypothesis.cpp | 4 |
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 |