diff options
author | Patrick Simianer <p@simianer.de> | 2014-03-16 17:48:48 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-03-16 17:48:48 +0100 |
commit | 5250fd67a4b8f242068cff87f0a6a4211f8b0fcf (patch) | |
tree | f1401c1fd3eeae8671e59baf0d2169d1eb721cb7 /decoder/trule.h | |
parent | 3eedf96b5a08b3e3414888d328c505814b84d8db (diff) | |
parent | cc87bfed0697583b7c11243913254dde3c0047d4 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'decoder/trule.h')
-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; |