diff options
author | Chris Dyer <redpony@gmail.com> | 2014-03-13 22:52:18 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-03-13 22:52:18 -0400 |
commit | 80f465a250e7fcfc5dd476d04e39a43ef0c909a3 (patch) | |
tree | 84242366037778945d1733447e582298c5bc5bd6 | |
parent | 70ef91b22ee4abc5e50c15c4eb08121739af2bfd (diff) |
missing commit
-rw-r--r-- | decoder/trule.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<TRule> 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<std::vector<TRulePtr> > fine_rules_; + // optional, shows internal structure of TSG rules + boost::shared_ptr<cdec::TreeFragment> 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; |