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:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-22 15:03:00 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-22 15:03:00 +0400
commit112bcdc925401388466169869bbefcae3a0b78a0 (patch)
tree1aae65820bbe9739f183e76e75db9aa2cefdbc25 /moses/MockHypothesis.cpp
parentf4a75b30f7d275004c0ac41f10584a0985866e28 (diff)
Make Phrase::CreateFromString() more efficient
Diffstat (limited to 'moses/MockHypothesis.cpp')
-rw-r--r--moses/MockHypothesis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/MockHypothesis.cpp b/moses/MockHypothesis.cpp
index 2969db782..e98794cb7 100644
--- a/moses/MockHypothesis.cpp
+++ b/moses/MockHypothesis.cpp
@@ -63,7 +63,7 @@ MockHypothesisGuard::MockHypothesisGuard(
Hypothesis* prevHypo = m_hypothesis;
WordsRange wordsRange(ai->first,ai->second);
m_targetPhrases.push_back(TargetPhrase());
- m_targetPhrases.back().CreateFromString(Input, factors, *ti, "|");
+ m_targetPhrases.back().CreateFromString(Input, factors, *ti, "|", NULL);
m_toptions.push_back(new TranslationOption
(wordsRange,m_targetPhrases.back()));
m_hypothesis = Hypothesis::Create(*prevHypo,*m_toptions.back(),NULL);