diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-28 16:07:18 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-28 16:07:18 +0300 |
commit | af0d0f02e199e618b06dcbfa083f06e831f44146 (patch) | |
tree | c18e57e589f3610d66785412a541e88bf8b37b42 /moses/Hypothesis.h | |
parent | eea29752a4d62991537ed9c245325163526182c7 (diff) |
move OutputAlignment() to Hypothesis class
Diffstat (limited to 'moses/Hypothesis.h')
-rw-r--r-- | moses/Hypothesis.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/moses/Hypothesis.h b/moses/Hypothesis.h index 2b0c98d91..7449e0b79 100644 --- a/moses/Hypothesis.h +++ b/moses/Hypothesis.h @@ -269,6 +269,11 @@ public: const TranslationOption &GetTranslationOption() const { return m_transOpt; } + + void OutputAlignment(std::ostream &out) const; + static void OutputAlignment(std::ostream &out, const std::vector<const Hypothesis *> &edges); + static void OutputAlignment(std::ostream &out, const Moses::AlignmentInfo &ai, size_t sourceOffset, size_t targetOffset); + }; std::ostream& operator<<(std::ostream& out, const Hypothesis& hypothesis); |