summaryrefslogtreecommitdiff
path: root/decoder/ff_spans.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-02-22 17:59:31 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2011-02-22 17:59:31 -0500
commit328873498127f44ff257db9e9a9551c6561587c0 (patch)
tree80a6be268abd97b17bab9775a590dfda9897f58f /decoder/ff_spans.h
parent23812a1f0e53ff4593a195206d652afcda85f605 (diff)
support span scores
Diffstat (limited to 'decoder/ff_spans.h')
-rw-r--r--decoder/ff_spans.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/decoder/ff_spans.h b/decoder/ff_spans.h
index 4bf5d7e7..b93faec5 100644
--- a/decoder/ff_spans.h
+++ b/decoder/ff_spans.h
@@ -26,6 +26,18 @@ class SpanFeatures : public FeatureFunction {
std::vector<int> end_span_ids_;
std::vector<int> beg_span_ids_;
std::map<WordID, WordID> word2class_; // optional projection to coarser class
+
+ // collapsed feature values
+ bool use_collapsed_features_;
+ int fid_beg_;
+ int fid_end_;
+ int fid_span_s_;
+ int fid_span_;
+ std::map<std::string, double> feat2val_;
+ std::vector<double> end_span_vals_;
+ std::vector<double> beg_span_vals_;
+ Array2D<std::pair<double,double> > span_vals_;
+
WordID oov_;
};