diff options
author | Chris Dyer <prguest11@taipan.cs> | 2012-04-16 19:39:36 +0100 |
---|---|---|
committer | Chris Dyer <prguest11@taipan.cs> | 2012-04-16 19:39:36 +0100 |
commit | f2fcf9e8aa0e5dee75fd08ee915488ec1a741975 (patch) | |
tree | ca902dff574a0952f081c91417d56312f5113ccf /rst_parser/arc_factored.h | |
parent | d5a2a9c3bf18c1e414f79a757c1662fe422e2f5c (diff) |
feature extraction helper
Diffstat (limited to 'rst_parser/arc_factored.h')
-rw-r--r-- | rst_parser/arc_factored.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rst_parser/arc_factored.h b/rst_parser/arc_factored.h index 4de38b66..a271c8d4 100644 --- a/rst_parser/arc_factored.h +++ b/rst_parser/arc_factored.h @@ -17,14 +17,17 @@ struct TaggedSentence { std::vector<WordID> pos; }; +struct ArcFeatureFunction; struct EdgeSubset { EdgeSubset() {} std::vector<short> roots; // unless multiroot trees are supported, this // will have a single member std::vector<std::pair<short, short> > h_m_pairs; // h,m start at 0 + void ExtractFeatures(const TaggedSentence& sentence, + const std::vector<boost::shared_ptr<ArcFeatureFunction> >& ffs, + SparseVector<double>* features) const; }; -struct ArcFeatureFunction; class ArcFactoredForest { public: ArcFactoredForest() : num_words_() {} |