diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-17 17:06:40 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-17 17:06:40 +0100 |
commit | 10cfa1082059db646148af1884117082335a48e7 (patch) | |
tree | ba128eeadab0e9ff589449bcd43b7ae1ca03c4e2 /decoder/ff_source_syntax.h | |
parent | ce830ec51477f345c811987e11a9ed4322edcac0 (diff) |
source span size features
Diffstat (limited to 'decoder/ff_source_syntax.h')
-rw-r--r-- | decoder/ff_source_syntax.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/decoder/ff_source_syntax.h b/decoder/ff_source_syntax.h index 1e890736..279563e1 100644 --- a/decoder/ff_source_syntax.h +++ b/decoder/ff_source_syntax.h @@ -21,4 +21,21 @@ class SourceSyntaxFeatures : public FeatureFunction { SourceSyntaxFeaturesImpl* impl; }; +struct SourceSpanSizeFeaturesImpl; +class SourceSpanSizeFeatures : public FeatureFunction { + public: + SourceSpanSizeFeatures(const std::string& param); + ~SourceSpanSizeFeatures(); + protected: + virtual void TraversalFeaturesImpl(const SentenceMetadata& smeta, + const Hypergraph::Edge& edge, + const std::vector<const void*>& ant_contexts, + SparseVector<double>* features, + SparseVector<double>* estimated_features, + void* context) const; + virtual void PrepareForInput(const SentenceMetadata& smeta); + private: + SourceSpanSizeFeaturesImpl* impl; +}; + #endif |