diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-04-22 13:38:32 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-04-22 13:38:32 -0400 |
commit | 9d393298ce21159907884ea9b7318c52585409ee (patch) | |
tree | cab034a01642abb2a067818f9c8f29999c4c6797 /decoder/trule.h | |
parent | b6634dff2cd515d9e6f95416512db893a08bde29 (diff) |
make compatible with FastSparseVector
Diffstat (limited to 'decoder/trule.h')
-rw-r--r-- | decoder/trule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/trule.h b/decoder/trule.h index 7cd24bc9..4df4ec90 100644 --- a/decoder/trule.h +++ b/decoder/trule.h @@ -132,7 +132,7 @@ class TRule { int Arity() const { return arity_; } bool IsUnary() const { return (Arity() == 1) && (f_.size() == 1); } const SparseVector<double>& GetFeatureValues() const { return scores_; } - double Score(int i) const { return scores_.get(i); } + double Score(int i) const { return scores_.value(i); } WordID GetLHS() const { return lhs_; } void ComputeArity(); |