diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-08-04 18:14:40 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-08-04 18:14:40 +0400 |
commit | f844bd12d95c8f6b94f104e1e1e8fe3a57c6c438 (patch) | |
tree | a6f8660208b9dced52c295c6b059332f7325e308 /moses/TargetPhrase.cpp | |
parent | 9ead26071e059e9539f794e81cdae7fffef57bed (diff) |
clean up TargetPhrase
Diffstat (limited to 'moses/TargetPhrase.cpp')
-rw-r--r-- | moses/TargetPhrase.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/moses/TargetPhrase.cpp b/moses/TargetPhrase.cpp index 777a098d6..433286b93 100644 --- a/moses/TargetPhrase.cpp +++ b/moses/TargetPhrase.cpp @@ -38,24 +38,6 @@ using namespace std; namespace Moses { -TargetPhrase::TargetPhrase( std::string out_string) - :Phrase(0) - , m_fullScore(0.0) - , m_futureScore(0.0) - , m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo()) - , m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo()) - , m_lhsTarget(NULL) - , m_ruleSource(NULL) - , m_decodeGraphId(NOT_FOUND) -{ - - //ACAT - const StaticData &staticData = StaticData::Instance(); - CreateFromString(Output, staticData.GetInputFactorOrder(), out_string, - // staticData.GetFactorDelimiter(), // eliminated [UG] - NULL); -} - TargetPhrase::TargetPhrase() :Phrase() , m_fullScore(0.0) @@ -64,7 +46,7 @@ TargetPhrase::TargetPhrase() , m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo()) , m_lhsTarget(NULL) , m_ruleSource(NULL) - , m_decodeGraphId(NOT_FOUND) + , m_container(NULL) { } @@ -76,7 +58,7 @@ TargetPhrase::TargetPhrase(const Phrase &phrase) , m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo()) , m_lhsTarget(NULL) , m_ruleSource(NULL) - , m_decodeGraphId(NOT_FOUND) + , m_container(NULL) { } @@ -87,7 +69,7 @@ TargetPhrase::TargetPhrase(const TargetPhrase ©) , m_scoreBreakdown(copy.m_scoreBreakdown) , m_alignTerm(copy.m_alignTerm) , m_alignNonTerm(copy.m_alignNonTerm) - , m_decodeGraphId(copy.m_decodeGraphId) + , m_container(copy.m_container) { if (copy.m_lhsTarget) { m_lhsTarget = new Word(*copy.m_lhsTarget); |