From c7cf6527101060afc723ba76ca6dce4c9f32b6b2 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 25 Feb 2014 18:22:34 +0000 Subject: [PATCH] alignments --- contrib/other-builds/extract-mixed-syntax/Rule.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/other-builds/extract-mixed-syntax/Rule.h b/contrib/other-builds/extract-mixed-syntax/Rule.h index b0e7d85da..8333958cd 100644 --- a/contrib/other-builds/extract-mixed-syntax/Rule.h +++ b/contrib/other-builds/extract-mixed-syntax/Rule.h @@ -20,6 +20,8 @@ class RulePhrase : public std::vector class Rule { public: + typedef std::set > Alignments; + Rule(const Rule ©); // do not implement // original rule with no non-term @@ -48,6 +50,9 @@ public: float GetCount() const { return m_count; } + const Alignments &GetAlignments() const + { return m_alignments; } + std::string Debug() const; void Output(std::ostream &out) const; @@ -60,7 +65,6 @@ protected: RulePhrase m_source, m_target; float m_count; - typedef std::set > Alignments; Alignments m_alignments; // in source order