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/MockHypothesis.cpp | |
parent | b1ea3d624b638b4b6caf25099f4e1f44f33dae8c (diff) |
Hypothesis: get rid of calls into Manager from constructor
Diffstat (limited to 'moses/MockHypothesis.cpp')
-rw-r--r-- | moses/MockHypothesis.cpp | 4 |
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()); } |