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 22:28:04 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-08-04 22:28:04 +0400
commite863592f40efb41eef11f1de09b1da59c0246611 (patch)
tree08106fe61e3f51257b970f6adceee7c902252fa0 /moses/TargetPhrase.cpp
parentabe68be588db3a96c5e247162b72054cbc146031 (diff)
TargetPhrase to have pointer to the phrase table that creates it
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 002258cdd..d2aa29693 100644
--- a/moses/TargetPhrase.cpp
+++ b/moses/TargetPhrase.cpp
@@ -38,7 +38,7 @@ using namespace std;
namespace Moses
{
-TargetPhrase::TargetPhrase()
+TargetPhrase::TargetPhrase(const PhraseDictionary *pt)
:Phrase()
, m_fullScore(0.0)
, m_futureScore(0.0)
@@ -46,7 +46,7 @@ TargetPhrase::TargetPhrase()
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_lhsTarget(NULL)
, m_ruleSource(NULL)
- , m_container(NULL)
+ , m_container(pt)
{
}