From 7c44acde2a042d24696e5b7a7cc9fc372fce2b3c Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 13 Mar 2014 22:52:18 -0400 Subject: missing commit --- decoder/trule.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'decoder') diff --git a/decoder/trule.h b/decoder/trule.h index 6a33d052..e9a10bea 100644 --- a/decoder/trule.h +++ b/decoder/trule.h @@ -15,6 +15,8 @@ class TRule; typedef boost::shared_ptr TRulePtr; +namespace cdec { struct TreeFragment; } + struct AlignmentPoint { AlignmentPoint() : s_(), t_() {} AlignmentPoint(int s, int t) : s_(s), t_(t) {} @@ -159,6 +161,9 @@ class TRule { // only for coarse-to-fine decoding boost::shared_ptr > fine_rules_; + // optional, shows internal structure of TSG rules + boost::shared_ptr tree_structure; + private: TRule(const WordID& src, const WordID& trg) : e_(1, trg), f_(1, src), lhs_(), arity_(), prev_i(), prev_j() {} bool SanityCheck() const; -- cgit v1.2.3