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 <hieuhoang@gmail.com>2013-12-11 23:19:25 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-12-11 23:19:25 +0400
commitfb356606e9c0177a2618d036296424cd2783395b (patch)
treec63b9ac261b195f3682c80cfdacab82dd7163613 /moses/ChartTranslationOptionList.cpp
parentebc6e59b175b92ea55a39acb0b1b329f3f8f3913 (diff)
debug function for ChartTranslationOptionList and ChartTranslationOptions
Diffstat (limited to 'moses/ChartTranslationOptionList.cpp')
-rw-r--r--moses/ChartTranslationOptionList.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/ChartTranslationOptionList.cpp b/moses/ChartTranslationOptionList.cpp
index 1297e5f37..963e9089c 100644
--- a/moses/ChartTranslationOptionList.cpp
+++ b/moses/ChartTranslationOptionList.cpp
@@ -165,4 +165,13 @@ void ChartTranslationOptionList::Evaluate(const InputType &input, const InputPat
}
}
+std::ostream& operator<<(std::ostream &out, const ChartTranslationOptionList &obj)
+{
+ for (size_t i = 0; i < obj.m_collection.size(); ++i) {
+ const ChartTranslationOptions &transOpts = *obj.m_collection[i];
+ out << transOpts << endl;
+ }
+ return out;
+}
+
}