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-26 14:35:09 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-26 14:35:09 +0300
commit1258f815551decc6630ad48e2fb5c3bc5b767f5a (patch)
treefd1991b338b47b1883b9f5c58dffbc50abbaab5c /moses/HypothesisStackCubePruning.cpp
parentd30a10e52cc69944beef3d067a403d269436297f (diff)
use bitmap* for comparison. can compare Bitmap* 'cos all bitmaps are created from bitmaps factory class. MUST ensure this is the case
Diffstat (limited to 'moses/HypothesisStackCubePruning.cpp')
-rw-r--r--moses/HypothesisStackCubePruning.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/HypothesisStackCubePruning.cpp b/moses/HypothesisStackCubePruning.cpp
index 7e6f47507..32dd99d31 100644
--- a/moses/HypothesisStackCubePruning.cpp
+++ b/moses/HypothesisStackCubePruning.cpp
@@ -288,19 +288,19 @@ HypothesisStackCubePruning::AddHypothesesToBitmapContainers()
for (iter = m_hypos.begin() ; iter != m_hypos.end() ; ++iter) {
Hypothesis *h = *iter;
const Bitmap &bitmap = h->GetWordsBitmap();
- BitmapContainer *container = m_bitmapAccessor[bitmap];
+ BitmapContainer *container = m_bitmapAccessor[&bitmap];
container->AddHypothesis(h);
}
}
BitmapContainer *HypothesisStackCubePruning::AddBitmapContainer(const Bitmap &bitmap, HypothesisStackCubePruning &stack)
{
- _BMType::iterator iter = m_bitmapAccessor.find(bitmap);
+ _BMType::iterator iter = m_bitmapAccessor.find(&bitmap);
BitmapContainer *bmContainer;
if (iter == m_bitmapAccessor.end()) {
bmContainer = new BitmapContainer(bitmap, stack, m_deterministic);
- m_bitmapAccessor[bitmap] = bmContainer;
+ m_bitmapAccessor[&bitmap] = bmContainer;
} else {
bmContainer = iter->second;
}