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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2014-05-31 17:33:31 +0400
committerUlrich Germann <ugermann@inf.ed.ac.uk>2014-05-31 17:33:31 +0400
commit249c40ec74f182cf92600341ea07de6666a6281a (patch)
treec07793b80139dde5bf1457c4b909fc51c1039eee /moses/MockHypothesis.cpp
parentc4528753433dc6a8be5c50676504e1f68724f275 (diff)
Eliminated factor delimiter from the parameters of
Phrase.CreateFromString() and Sentence.CreateFromString(), as it was never used in those functions anyway --- Word.CreateFromString() retrieves the factor delimiter from StaticData directly.
Diffstat (limited to 'moses/MockHypothesis.cpp')
-rw-r--r--moses/MockHypothesis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/MockHypothesis.cpp b/moses/MockHypothesis.cpp
index 8042fd931..81fcb24b8 100644
--- a/moses/MockHypothesis.cpp
+++ b/moses/MockHypothesis.cpp
@@ -63,7 +63,8 @@ MockHypothesisGuard::MockHypothesisGuard(
Hypothesis* prevHypo = m_hypothesis;
WordsRange wordsRange(ai->first,ai->second);
m_targetPhrases.push_back(TargetPhrase());
- m_targetPhrases.back().CreateFromString(Input, factors, *ti, "|", NULL);
+ // m_targetPhrases.back().CreateFromString(Input, factors, *ti, "|", NULL);
+ 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());