summaryrefslogtreecommitdiff
path: root/extractor/scorer.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-02-01 16:11:10 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-02-01 16:11:10 +0000
commit0a53f7eca74c165b5ce1c238f1999ddf1febea55 (patch)
tree5a5231767bc2f92203711ab4aee75336b8bc2175 /extractor/scorer.h
parent5530575ae0ad939e17f08d6bd49978acea388ab7 (diff)
Second working commit.
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