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:20:22 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-08-04 18:20:22 +0400
commit5f90ccdb13194b1bc9401cc3691c7672c42d30f6 (patch)
tree16190dfb81b3270e1a52dd724e458fb1f3bb76ea /moses/TargetPhrase.cpp
parentf844bd12d95c8f6b94f104e1e1e8fe3a57c6c438 (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..0ec1e9faa 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)
{
}