diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-20 03:15:15 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-20 03:15:15 +0300 |
commit | 3d8e5fa79e1577141f0540162519541bea5fe295 (patch) | |
tree | 8286eb8feec0dc497c86a21605d43cfdf8fb260e /moses/Hypothesis.cpp | |
parent | b5f0758ee453fa351980a2d52375bf1cc1f66c32 (diff) |
use Bitmap& in Hypothesis
Diffstat (limited to 'moses/Hypothesis.cpp')
-rw-r--r-- | moses/Hypothesis.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/moses/Hypothesis.cpp b/moses/Hypothesis.cpp index 6776943bb..fcf652b74 100644 --- a/moses/Hypothesis.cpp +++ b/moses/Hypothesis.cpp @@ -75,9 +75,9 @@ Hypothesis(Manager& manager, InputType const& source, const TranslationOption &i * continue prevHypo by appending the phrases in transOpt */ Hypothesis:: -Hypothesis(const Hypothesis &prevHypo, const TranslationOption &transOpt) +Hypothesis(const Hypothesis &prevHypo, const TranslationOption &transOpt, const WordsBitmap &bitmap) : m_prevHypo(&prevHypo) - , m_sourceCompleted(prevHypo.m_sourceCompleted ) + , m_sourceCompleted(bitmap) , m_sourceInput(prevHypo.m_sourceInput) , m_currSourceWordsRange(transOpt.GetSourceWordsRange()) , m_currTargetWordsRange(prevHypo.m_currTargetWordsRange.GetEndPos() + 1, @@ -98,8 +98,6 @@ Hypothesis(const Hypothesis &prevHypo, const TranslationOption &transOpt) // that this hypothesis has already translated! assert(!m_sourceCompleted.Overlap(m_currSourceWordsRange)); - //_hash_computed = false; - m_sourceCompleted.SetValue(m_currSourceWordsRange.GetStartPos(), m_currSourceWordsRange.GetEndPos(), true); m_wordDeleted = transOpt.IsDeletionOption(); m_manager.GetSentenceStats().AddCreated(); } |