From 337b647baac15609a0a493902d58c473d25d2ed8 Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 8 Jul 2010 16:44:20 +0000 Subject: --show_features git-svn-id: https://ws10smt.googlecode.com/svn/trunk@184 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/trule.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'decoder/trule.h') diff --git a/decoder/trule.h b/decoder/trule.h index 7fb92924..defdbeb9 100644 --- a/decoder/trule.h +++ b/decoder/trule.h @@ -28,6 +28,8 @@ class TRule { scores_.set_value(feat_ids[i], feat_vals[i]); } + bool IsGoal() const; + explicit TRule(const std::vector& e) : e_(e), lhs_(0), prev_i(-1), prev_j(-1) {} TRule(const std::vector& e, const std::vector& f, const WordID& lhs) : e_(e), f_(f), lhs_(lhs), prev_i(-1), prev_j(-1) {} @@ -126,7 +128,7 @@ class TRule { std::vector f_; WordID lhs_; SparseVector scores_; - + char arity_; TRulePtr parent_rule_; // usually NULL, except when doing constrained decoding -- cgit v1.2.3