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-03-08 20:33:36 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-03-08 20:33:36 +0400
commitd0e2e417aa9dcc1e8cac2bb751e0f7a9707d06b5 (patch)
tree648a96bdead075ae10953fb2c4bf339a978de3bc /moses/TargetPhraseCollection.cpp
parent66ad6f32cec628e7c56eee9c04171e3ed4d027b4 (diff)
merging PhraseDictionaryMemory and PhraseDictionarySCFG. target phrase score not the same
Diffstat (limited to 'moses/TargetPhraseCollection.cpp')
-rw-r--r--moses/TargetPhraseCollection.cpp10
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
+