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/MockHypothesis.cpp
parentb1ea3d624b638b4b6caf25099f4e1f44f33dae8c (diff)
Hypothesis: get rid of calls into Manager from constructor
Diffstat (limited to 'moses/MockHypothesis.cpp')
-rw-r--r--moses/MockHypothesis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/MockHypothesis.cpp b/moses/MockHypothesis.cpp
index 53a97764a..25f319ea1 100644
--- a/moses/MockHypothesis.cpp
+++ b/moses/MockHypothesis.cpp
@@ -51,7 +51,7 @@ MockHypothesisGuard
const Bitmap &initBitmap = bitmaps.GetInitialBitmap();
m_hypothesis = new Hypothesis(*m_manager, *m_sentence, m_initialTransOpt,
- initBitmap);
+ initBitmap, m_manager->GetNextHypoId());
//create the chain
vector<Alignment>::const_iterator ai = alignments.begin();
@@ -67,7 +67,7 @@ MockHypothesisGuard
m_targetPhrases.back().CreateFromString(Input, factors, *ti, NULL);
m_toptions.push_back(new TranslationOption
(range,m_targetPhrases.back()));
- m_hypothesis = new Hypothesis(*prevHypo, *m_toptions.back(), newBitmap);
+ m_hypothesis = new Hypothesis(*prevHypo, *m_toptions.back(), newBitmap, m_manager->GetNextHypoId());
}