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:
authorDavid Madl <git@abanbytes.eu>2015-11-13 15:45:47 +0300
committerDavid Madl <git@abanbytes.eu>2015-11-17 19:15:13 +0300
commit73ab44c1266bcc076da890993ee4240e2eaf711f (patch)
tree9d060cf4f925ab5c452b7a240b6c31eb38e1534d /moses/SearchNormal.cpp
parentb1ea3d624b638b4b6caf25099f4e1f44f33dae8c (diff)
Hypothesis: get rid of calls into Manager from constructor
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r--moses/SearchNormal.cpp6
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();