diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2011-11-21 15:14:05 +0400 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2011-11-21 15:14:05 +0400 |
commit | 5baa595a91ff41e26c61f83ffafa77046e432843 (patch) | |
tree | b97518cf913be1276c9de54cfccd41387836337f /moses | |
parent | 3dc30fd51a77a7f4df1a213e182f7e69fd3b076a (diff) |
Further direction removal
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/Sentence.cpp | 3 | ||||
-rw-r--r-- | moses/src/Sentence.h | 2 | ||||
-rw-r--r-- | moses/src/TreeInput.h | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/moses/src/Sentence.cpp b/moses/src/Sentence.cpp index 08a4f2b4c..87ede7c7a 100644 --- a/moses/src/Sentence.cpp +++ b/moses/src/Sentence.cpp @@ -33,11 +33,10 @@ using namespace std; namespace Moses { -Sentence::Sentence(FactorDirection direction) +Sentence::Sentence() : Phrase(0) , InputType() { - CHECK(direction == Input); const StaticData& staticData = StaticData::Instance(); if (staticData.GetSearchAlgorithm() == ChartDecoding) { m_defaultLabelSet.insert(StaticData::Instance().GetInputDefaultNonTerminal()); diff --git a/moses/src/Sentence.h b/moses/src/Sentence.h index 20b34c4c7..b1c25f9dd 100644 --- a/moses/src/Sentence.h +++ b/moses/src/Sentence.h @@ -60,7 +60,7 @@ private: public: - Sentence(FactorDirection direction); + Sentence(); InputTypeEnum GetType() const { return SentenceInput; diff --git a/moses/src/TreeInput.h b/moses/src/TreeInput.h index f621ef0bd..a6242d97e 100644 --- a/moses/src/TreeInput.h +++ b/moses/src/TreeInput.h @@ -37,8 +37,7 @@ protected: bool ProcessAndStripXMLTags(std::string &line, std::vector<XMLParseOutput> &sourceLabels); public: - TreeInput(FactorDirection direction) - : Sentence(direction) + TreeInput() {} InputTypeEnum GetType() const { |