diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-20 02:50:40 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-20 02:50:40 +0300 |
commit | b5f0758ee453fa351980a2d52375bf1cc1f66c32 (patch) | |
tree | 71336bfe917edd9823ecc4e2833ac9c300bc92a3 /moses/SearchNormal.cpp | |
parent | 60add0b376402f783af74a4fc66d3f0437da6c36 (diff) |
make bitmap in hypo class a reference
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r-- | moses/SearchNormal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp index 2d4d45a8a..69dbe0d56 100644 --- a/moses/SearchNormal.cpp +++ b/moses/SearchNormal.cpp @@ -86,7 +86,8 @@ void SearchNormal::Decode() // SentenceStats &stats = m_manager.GetSentenceStats(); // initial seed hypothesis: nothing translated, no words produced - Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt); + const WordsBitmap &bitmap = m_bitmaps.GetBitmap(WordsBitmap(m_source.GetSize())); + Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt, bitmap); m_hypoStackColl[0]->AddPrune(hypo); |