diff options
| author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-08 16:44:20 +0000 | 
|---|---|---|
| committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-08 16:44:20 +0000 | 
| commit | 337b647baac15609a0a493902d58c473d25d2ed8 (patch) | |
| tree | 3827f59a180164878ee217f27f445c259c9e5bab /decoder/trule.h | |
| parent | 7386574a2c70c7ed6e937eb94e3add8023cd7327 (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.h | 4 | 
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 | 
