summaryrefslogtreecommitdiff
path: root/extractor/scorer.h
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/scorer.h')
-rw-r--r--extractor/scorer.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/extractor/scorer.h b/extractor/scorer.h
index 57405a6c..5b328fb4 100644
--- a/extractor/scorer.h
+++ b/extractor/scorer.h
@@ -1,19 +1,25 @@
#ifndef _SCORER_H_
#define _SCORER_H_
+#include <memory>
+#include <string>
#include <vector>
-#include "features/feature.h"
-
using namespace std;
+class Feature;
+class FeatureContext;
+
class Scorer {
public:
- Scorer(const vector<Feature*>& features);
- ~Scorer();
+ Scorer(const vector<shared_ptr<Feature> >& features);
+
+ vector<double> Score(const FeatureContext& context) const;
+
+ vector<string> GetFeatureNames() const;
private:
- vector<Feature*> features;
+ vector<shared_ptr<Feature> > features;
};
#endif