diff options
author | Patrick Simianer <p@simianer.de> | 2013-04-25 10:29:57 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-04-25 10:29:57 +0200 |
commit | 45c932f9cb26f0144f3f5ce26b64d60e44f9b854 (patch) | |
tree | ee537181a49a3036bc0c67daf54e426c913f8a82 /decoder/ff_parse_match.h | |
parent | 1a79879da9e1284600737f2ea9e2f97867b4d4dc (diff) |
added Gesa's parse match feature function
Diffstat (limited to 'decoder/ff_parse_match.h')
-rw-r--r-- | decoder/ff_parse_match.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/decoder/ff_parse_match.h b/decoder/ff_parse_match.h new file mode 100644 index 00000000..fa73481a --- /dev/null +++ b/decoder/ff_parse_match.h @@ -0,0 +1,25 @@ +#ifndef _FF_PARSE_MATCH_H_ +#define _FF_PARSE_MATCH_H_ + +#include "ff.h" +#include "hg.h" + +struct ParseMatchFeaturesImpl; + +class ParseMatchFeatures : public FeatureFunction { + public: + ParseMatchFeatures(const std::string& param); + ~ParseMatchFeatures(); + 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: + ParseMatchFeaturesImpl* impl; +}; + +#endif |