diff options
author | XapaJIaMnu <nheart@gmail.com> | 2015-06-25 17:47:17 +0300 |
---|---|---|
committer | XapaJIaMnu <nheart@gmail.com> | 2015-06-25 17:47:17 +0300 |
commit | afdc1b480ea81f424b35ac9e96c57815f847203a (patch) | |
tree | cce7691e356c1a89fb7855a7ebbea0575a42bb6b /moses/TargetPhrase.cpp | |
parent | 47a488767e4944e5768bda70fe3271528e753ef5 (diff) |
Break everything by trying to add ttasksptr to TargetPhrase
Diffstat (limited to 'moses/TargetPhrase.cpp')
-rw-r--r-- | moses/TargetPhrase.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/moses/TargetPhrase.cpp b/moses/TargetPhrase.cpp index 4976375e9..3426a3093 100644 --- a/moses/TargetPhrase.cpp +++ b/moses/TargetPhrase.cpp @@ -39,7 +39,7 @@ using namespace std; namespace Moses { -TargetPhrase::TargetPhrase( std::string out_string, const PhraseDictionary *pt) +TargetPhrase::TargetPhrase(const ttasksptr ttasks, std::string out_string, const PhraseDictionary *pt) :Phrase(0) , m_fullScore(0.0) , m_futureScore(0.0) @@ -48,6 +48,7 @@ TargetPhrase::TargetPhrase( std::string out_string, const PhraseDictionary *pt) , m_lhsTarget(NULL) , m_ruleSource(NULL) , m_container(pt) + , m_ttasks(ttasks) { //ACAT @@ -58,7 +59,7 @@ TargetPhrase::TargetPhrase( std::string out_string, const PhraseDictionary *pt) NULL); } -TargetPhrase::TargetPhrase(const PhraseDictionary *pt) +TargetPhrase::TargetPhrase(const ttasksptr ttasks, const PhraseDictionary *pt) :Phrase() , m_fullScore(0.0) , m_futureScore(0.0) @@ -67,10 +68,11 @@ TargetPhrase::TargetPhrase(const PhraseDictionary *pt) , m_lhsTarget(NULL) , m_ruleSource(NULL) , m_container(pt) + , m_ttasks(ttasks) { } -TargetPhrase::TargetPhrase(const Phrase &phrase, const PhraseDictionary *pt) +TargetPhrase::TargetPhrase(const ttasksptr ttasks, const Phrase &phrase, const PhraseDictionary *pt) : Phrase(phrase) , m_fullScore(0.0) , m_futureScore(0.0) @@ -79,6 +81,7 @@ TargetPhrase::TargetPhrase(const Phrase &phrase, const PhraseDictionary *pt) , m_lhsTarget(NULL) , m_ruleSource(NULL) , m_container(pt) + , m_ttasks(ttasks) { } @@ -92,6 +95,7 @@ TargetPhrase::TargetPhrase(const TargetPhrase ©) , m_alignNonTerm(copy.m_alignNonTerm) , m_properties(copy.m_properties) , m_container(copy.m_container) + , m_ttasks(copy.m_ttasks) { if (copy.m_lhsTarget) { m_lhsTarget = new Word(*copy.m_lhsTarget); |