diff options
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 { |