diff options
author | Patrick Simianer <p@simianer.de> | 2013-11-05 16:29:03 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-11-05 16:29:03 +0100 |
commit | 5cba65baf55b821cbc22b0ee0e3ae8dc9946ca0f (patch) | |
tree | a4690c2ed619b7cf3eeb34264c661970f6a6d3a4 /decoder/ff_soft_syntax_mindist.h | |
parent | a9171fa0aa0ad6d7611fe079ecee464bc5f78231 (diff) |
cleaning up syntax features
Diffstat (limited to 'decoder/ff_soft_syntax_mindist.h')
-rw-r--r-- | decoder/ff_soft_syntax_mindist.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/decoder/ff_soft_syntax_mindist.h b/decoder/ff_soft_syntax_mindist.h new file mode 100644 index 00000000..bf938b38 --- /dev/null +++ b/decoder/ff_soft_syntax_mindist.h @@ -0,0 +1,27 @@ +#ifndef _FF_SOFT_SYNTAX_MINDIST_H_ +#define _FF_SOFT_SYNTAX_MINDIST_H_ + +#include "ff.h" +#include "hg.h" + +struct SoftSyntaxFeaturesMindistImpl; + +class SoftSyntaxFeaturesMindist : public FeatureFunction { + public: + SoftSyntaxFeaturesMindist(const std::string& param); + ~SoftSyntaxFeaturesMindist(); + 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: + SoftSyntaxFeaturesMindistImpl* impl; +}; + + +#endif + |