diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-02 18:54:49 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-02 18:54:49 +0400 |
commit | 0596c3e9e47301303c07e1b7d44e671f4c227423 (patch) | |
tree | e81a4df739467c849d60cf8842268b850a63098c /moses/ConfusionNet.h | |
parent | d1d07d5923c03c3c6b7d7ac9cb6745c91f83be08 (diff) |
Add NonTerminalSet variable to InputPath
Diffstat (limited to 'moses/ConfusionNet.h')
-rw-r--r-- | moses/ConfusionNet.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/ConfusionNet.h b/moses/ConfusionNet.h index c9c83e154..ea68ce570 100644 --- a/moses/ConfusionNet.h +++ b/moses/ConfusionNet.h @@ -7,6 +7,7 @@ #include <iostream> #include "Word.h" #include "InputType.h" +#include "NonTerminal.h" namespace Moses { @@ -25,6 +26,7 @@ public: protected: std::vector<Column> data; + NonTerminalSet m_defaultLabelSet; bool ReadFormat0(std::istream&,const std::vector<FactorType>& factorOrder); bool ReadFormat1(std::istream&,const std::vector<FactorType>& factorOrder); @@ -71,8 +73,7 @@ public: TranslationOptionCollection* CreateTranslationOptionCollection() const; const NonTerminalSet &GetLabelSet(size_t /*startPos*/, size_t /*endPos*/) const { - CHECK(false); - return *(new NonTerminalSet()); + return m_defaultLabelSet; } }; |