summaryrefslogtreecommitdiff
path: root/decoder/trule.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-08 16:44:20 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-08 16:44:20 +0000
commitd5ff16caf653f6fab31a3f0620214c331d6eebc4 (patch)
tree696c66cc1a217564cb08ce947047ccc2f1092b1f /decoder/trule.h
parentcea8791b9c517a1ab7e29c34fa6bf52843a3ab55 (diff)
--show_features
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@184 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/trule.h')
-rw-r--r--decoder/trule.h4
1 files changed, 3 insertions, 1 deletions
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<WordID>& e) : e_(e), lhs_(0), prev_i(-1), prev_j(-1) {}
TRule(const std::vector<WordID>& e, const std::vector<WordID>& f, const WordID& lhs) :
e_(e), f_(f), lhs_(lhs), prev_i(-1), prev_j(-1) {}
@@ -126,7 +128,7 @@ class TRule {
std::vector<WordID> f_;
WordID lhs_;
SparseVector<double> scores_;
-
+
char arity_;
TRulePtr parent_rule_; // usually NULL, except when doing constrained decoding