From 5bc0b9b1fc76064d13d2c553c019a381ee52dfa1 Mon Sep 17 00:00:00 2001 From: graehl Date: Sat, 24 Jul 2010 21:18:01 +0000 Subject: FSA: simpler Scan1 ScanT1 methods, otherewise also expose edge to full Scan git-svn-id: https://ws10smt.googlecode.com/svn/trunk@399 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/trule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'decoder/trule.h') diff --git a/decoder/trule.h b/decoder/trule.h index 3bc96165..6b98a8fa 100644 --- a/decoder/trule.h +++ b/decoder/trule.h @@ -121,7 +121,7 @@ class TRule { int Arity() const { return arity_; } bool IsUnary() const { return (Arity() == 1) && (f_.size() == 1); } const SparseVector& GetFeatureValues() const { return scores_; } - double Score(int i) const { return scores_[i]; } + double Score(int i) const { return scores_.get(i); } WordID GetLHS() const { return lhs_; } void ComputeArity(); @@ -133,8 +133,8 @@ class TRule { SparseVector scores_; char arity_; - - // these attributes are application-specific and should probably be refactored + + // these attributes are application-specific and should probably be refactored TRulePtr parent_rule_; // usually NULL, except when doing constrained decoding // this is only used when doing synchronous parsing -- cgit v1.2.3