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 12:20:08 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-26 12:20:08 +0300
commit52f4086dbc5b5621600d07c3edf9dbca2e8cd38e (patch)
treeee6594d8438364e6e2663eda02bbc6153b13d700 /moses/SearchNormal.cpp
parent486990fa3f8ed3150fe40f33f81c3c5ee2ccdd47 (diff)
move m_bitmaps into Search class. Cube pruning uses it too
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r--moses/SearchNormal.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp
index f66491493..bc8be525f 100644
--- a/moses/SearchNormal.cpp
+++ b/moses/SearchNormal.cpp
@@ -18,11 +18,9 @@ namespace Moses
SearchNormal::
SearchNormal(Manager& manager, const InputType &source,
const TranslationOptionCollection &transOptColl)
- : Search(manager)
- , m_source(source)
+ : Search(manager, source)
, m_hypoStackColl(source.GetSize() + 1)
, m_transOptColl(transOptColl)
- , m_bitmaps(source.GetSize(), source.m_sourceCompleted)
{
VERBOSE(1, "Translating: " << m_source << endl);
@@ -87,8 +85,8 @@ void SearchNormal::Decode()
// SentenceStats &stats = m_manager.GetSentenceStats();
// initial seed hypothesis: nothing translated, no words produced
- const Bitmap &bitmap = m_bitmaps.GetInitialBitmap();
- Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt, bitmap);
+ const Bitmap &initBitmap = m_bitmaps.GetInitialBitmap();
+ Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt, initBitmap);
m_hypoStackColl[0]->AddPrune(hypo);