Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-08-02 18:54:49 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-02 18:54:49 +0400
commit0596c3e9e47301303c07e1b7d44e671f4c227423 (patch)
treee81a4df739467c849d60cf8842268b850a63098c /moses/NonTerminal.cpp
parentd1d07d5923c03c3c6b7d7ac9cb6745c91f83be08 (diff)
Add NonTerminalSet variable to InputPath
Diffstat (limited to 'moses/NonTerminal.cpp')
-rw-r--r--moses/NonTerminal.cpp17
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;
+ }
+
+
+}