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>2014-12-28 16:07:18 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-12-28 16:07:18 +0300
commitaf0d0f02e199e618b06dcbfa083f06e831f44146 (patch)
treec18e57e589f3610d66785412a541e88bf8b37b42 /moses/Hypothesis.h
parenteea29752a4d62991537ed9c245325163526182c7 (diff)
move OutputAlignment() to Hypothesis class
Diffstat (limited to 'moses/Hypothesis.h')
-rw-r--r--moses/Hypothesis.h5
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);