summaryrefslogtreecommitdiff
path: root/decoder/hg_io.cc
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-10-16 01:27:30 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-10-16 01:27:30 -0400
commit547953bb2a42c001004bdb83814000d688bec8ba (patch)
tree1f0bedf9a99df05f98b0188f1b7690a8d0c8a14c /decoder/hg_io.cc
parent07994f5e72052b0dd7110819a383ae955313f452 (diff)
parent09a522afef40e514e741ddf5f9bbc61cfb2170e8 (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'decoder/hg_io.cc')
-rw-r--r--decoder/hg_io.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/hg_io.cc b/decoder/hg_io.cc
index 8f604c89..64c6663e 100644
--- a/decoder/hg_io.cc
+++ b/decoder/hg_io.cc
@@ -28,7 +28,7 @@ struct HGReader : public JSONParser {
hg.ConnectEdgeToHeadNode(&hg.edges_[in_edges[i]], node);
}
}
- void CreateEdge(const TRulePtr& rule, FeatureVector* feats, const SmallVectorUnsigned& tail) {
+ void CreateEdge(const TRulePtr& rule, SparseVector<double>* feats, const SmallVectorUnsigned& tail) {
Hypergraph::Edge* edge = hg.AddEdge(rule, tail);
feats->swap(edge->feature_values_);
edge->i_ = spans[0];