diff options
author | David Madl <git@abanbytes.eu> | 2015-11-13 15:45:47 +0300 |
---|---|---|
committer | David Madl <git@abanbytes.eu> | 2015-11-17 19:15:13 +0300 |
commit | 73ab44c1266bcc076da890993ee4240e2eaf711f (patch) | |
tree | 9d060cf4f925ab5c452b7a240b6c31eb38e1534d /moses/SearchNormal.cpp | |
parent | b1ea3d624b638b4b6caf25099f4e1f44f33dae8c (diff) |
Hypothesis: get rid of calls into Manager from constructor
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r-- | moses/SearchNormal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp index 6886c984f..4d7fd8a2c 100644 --- a/moses/SearchNormal.cpp +++ b/moses/SearchNormal.cpp @@ -86,7 +86,7 @@ void SearchNormal::Decode() // initial seed hypothesis: nothing translated, no words produced const Bitmap &initBitmap = m_bitmaps.GetInitialBitmap(); - Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt, initBitmap); + Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt, initBitmap, m_manager.GetNextHypoId()); m_hypoStackColl[0]->AddPrune(hypo); @@ -302,7 +302,7 @@ void SearchNormal::ExpandHypothesis(const Hypothesis &hypothesis, IFVERBOSE(2) { stats.StartTimeBuildHyp(); } - newHypo = new Hypothesis(hypothesis, transOpt, bitmap); + newHypo = new Hypothesis(hypothesis, transOpt, bitmap, m_manager.GetNextHypoId()); IFVERBOSE(2) { stats.StopTimeBuildHyp(); } @@ -336,7 +336,7 @@ void SearchNormal::ExpandHypothesis(const Hypothesis &hypothesis, IFVERBOSE(2) { stats.StartTimeBuildHyp(); } - newHypo = new Hypothesis(hypothesis, transOpt, bitmap); + newHypo = new Hypothesis(hypothesis, transOpt, bitmap, m_manager.GetNextHypoId()); if (newHypo==NULL) return; IFVERBOSE(2) { stats.StopTimeBuildHyp(); |