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>2014-08-04 18:59:32 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-08-04 18:59:32 +0400
commitabe68be588db3a96c5e247162b72054cbc146031 (patch)
treeedb78d01cf80c027486b9a5aad03fe500934add1 /moses/TargetPhrase.cpp
parent3f3912772dca06e1b4095e1db205e7ba0e6c6551 (diff)
initialise m_container
Diffstat (limited to 'moses/TargetPhrase.cpp')
-rw-r--r--moses/TargetPhrase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TargetPhrase.cpp b/moses/TargetPhrase.cpp
index 433286b93..002258cdd 100644
--- a/moses/TargetPhrase.cpp
+++ b/moses/TargetPhrase.cpp
@@ -50,7 +50,7 @@ TargetPhrase::TargetPhrase()
{
}
-TargetPhrase::TargetPhrase(const Phrase &phrase)
+TargetPhrase::TargetPhrase(const Phrase &phrase, const PhraseDictionary *pt)
: Phrase(phrase)
, m_fullScore(0.0)
, m_futureScore(0.0)
@@ -58,7 +58,7 @@ TargetPhrase::TargetPhrase(const Phrase &phrase)
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_lhsTarget(NULL)
, m_ruleSource(NULL)
- , m_container(NULL)
+ , m_container(pt)
{
}