diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-03-08 20:33:36 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-03-08 20:33:36 +0400 |
commit | d0e2e417aa9dcc1e8cac2bb751e0f7a9707d06b5 (patch) | |
tree | 648a96bdead075ae10953fb2c4bf339a978de3bc /moses/TargetPhraseCollection.cpp | |
parent | 66ad6f32cec628e7c56eee9c04171e3ed4d027b4 (diff) |
merging PhraseDictionaryMemory and PhraseDictionarySCFG. target phrase score not the same
Diffstat (limited to 'moses/TargetPhraseCollection.cpp')
-rw-r--r-- | moses/TargetPhraseCollection.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/moses/TargetPhraseCollection.cpp b/moses/TargetPhraseCollection.cpp index 38570f8d5..78b63d852 100644 --- a/moses/TargetPhraseCollection.cpp +++ b/moses/TargetPhraseCollection.cpp @@ -74,6 +74,16 @@ void TargetPhraseCollection::Sort(bool adhereTableLimit, size_t tableLimit) } } +std::ostream& operator<<(std::ostream &out, const TargetPhraseCollection &obj) +{ + TargetPhraseCollection::const_iterator iter; + for (iter = obj.begin(); iter != obj.end(); ++iter) { + const TargetPhrase &tp = **iter; + out << tp << endl; + } + return out; } +} // namespace + |