diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-08-04 22:28:04 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-08-04 22:28:04 +0400 |
commit | e863592f40efb41eef11f1de09b1da59c0246611 (patch) | |
tree | 08106fe61e3f51257b970f6adceee7c902252fa0 /moses/TargetPhrase.cpp | |
parent | abe68be588db3a96c5e247162b72054cbc146031 (diff) |
TargetPhrase to have pointer to the phrase table that creates it
Diffstat (limited to 'moses/TargetPhrase.cpp')
-rw-r--r-- | moses/TargetPhrase.cpp | 4 |
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) { } |