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/NonTerminal.cpp | |
parent | d1d07d5923c03c3c6b7d7ac9cb6745c91f83be08 (diff) |
Add NonTerminalSet variable to InputPath
Diffstat (limited to 'moses/NonTerminal.cpp')
-rw-r--r-- | moses/NonTerminal.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/moses/NonTerminal.cpp b/moses/NonTerminal.cpp index 37ebc9b68..032a50678 100644 --- a/moses/NonTerminal.cpp +++ b/moses/NonTerminal.cpp @@ -1,3 +1,20 @@ #include "NonTerminal.h" +using namespace std; + +namespace Moses { + std::ostream& operator<<(std::ostream &out, const NonTerminalSet &obj) + { + NonTerminalSet::const_iterator iter; + for (iter = obj.begin(); iter != obj.end(); ++iter) { + const Word &word = *iter; + out << word << " "; + } + + + return out; + } + + +} |