mosesdecoder/moses/NonTerminal.cpp

22 lines
315 B
C++
Raw Normal View History

#include "NonTerminal.h"
using namespace std;
2013-08-07 17:18:12 +04:00
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 << " ";
}
2013-08-07 17:18:12 +04:00
return out;
}
}