summaryrefslogtreecommitdiff
path: root/decoder/ff_soft_syntax_mindist.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-11-23 17:33:47 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-11-23 17:33:47 +0000
commit072c4bb1edde483b87b93bc6f4eec36fc8a21008 (patch)
tree6ceaa6ae1e08df9e523282740b14f4857236297c /decoder/ff_soft_syntax_mindist.h
parent7e90b8ea10904f9b83f4e77e14c7396a3e6f7d5d (diff)
parent9e80389b9763aa4f7f626ec71b561ccf6948d3ad (diff)
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'decoder/ff_soft_syntax_mindist.h')
-rw-r--r--decoder/ff_soft_syntax_mindist.h27
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
+