From 3e82edae3cb6a347a3094b82f961082421fe6cb9 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 13 Jun 2014 00:26:36 -0400 Subject: new trule datastructure that can store t2s with multiple states (i.e., t2t rules) --- decoder/trule.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoder/trule.h') 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 scores_; char arity_; + std::vector 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 -- cgit v1.2.3