diff options
| author | Chris Dyer <redpony@gmail.com> | 2014-06-13 00:26:36 -0400 | 
|---|---|---|
| committer | Chris Dyer <redpony@gmail.com> | 2014-06-13 00:26:36 -0400 | 
| commit | b4ce7c0b51d8615abf84c022ec3a981bee3277fe (patch) | |
| tree | c96f0eb1919cba8200daf71266cdb61a42f9cc41 | |
| parent | cca7e44e48cda331cd7642315a8ea0ff03b9d816 (diff) | |
new trule datastructure that can store t2s with multiple states (i.e., t2t rules)
| -rw-r--r-- | decoder/trule.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/decoder/trule.h b/decoder/trule.h index cc370757..243b0da9 100644 --- a/decoder/trule.h +++ b/decoder/trule.h @@ -144,6 +144,9 @@ class TRule {    SparseVector<double> scores_;    char arity_; +  std::vector<WordID> ext_states_; // in t2s or t2t translation, this is of length arity_ and +                                   // indicates what state the transducer is in after having processed +                                   // this transduction rule    // these attributes are application-specific and should probably be refactored    TRulePtr parent_rule_;  // usually NULL, except when doing constrained decoding | 
