summaryrefslogtreecommitdiff
path: root/decoder/ff_spans.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ff_spans.cc')
-rw-r--r--decoder/ff_spans.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ff_spans.cc b/decoder/ff_spans.cc
index 6e92535a..989eed56 100644
--- a/decoder/ff_spans.cc
+++ b/decoder/ff_spans.cc
@@ -57,7 +57,7 @@ void SpanFeatures::TraversalFeaturesImpl(const SentenceMetadata& smeta,
if (edge.rule_->lhs_ == kS)
features->set_value(span_feats_(edge.i_,edge.j_).second, 1);
else
- features->set_value(span_feats_(edge.i_,edge.j_).second, 1);
+ features->set_value(span_feats_(edge.i_,edge.j_).first, 1);
if (edge.Arity() == 2) {
const TRule& rule = *edge.rule_;
if (rule.f_[0] == kS && rule.f_[1] == kX) {