diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-11 23:19:25 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-11 23:19:25 +0400 |
commit | fb356606e9c0177a2618d036296424cd2783395b (patch) | |
tree | c63b9ac261b195f3682c80cfdacab82dd7163613 /moses/ChartTranslationOptionList.cpp | |
parent | ebc6e59b175b92ea55a39acb0b1b329f3f8f3913 (diff) |
debug function for ChartTranslationOptionList and ChartTranslationOptions
Diffstat (limited to 'moses/ChartTranslationOptionList.cpp')
-rw-r--r-- | moses/ChartTranslationOptionList.cpp | 9 |
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; +} + } |