diff options
Diffstat (limited to 'extractor/scorer.h')
-rw-r--r-- | extractor/scorer.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/extractor/scorer.h b/extractor/scorer.h new file mode 100644 index 00000000..ba71a6ee --- /dev/null +++ b/extractor/scorer.h @@ -0,0 +1,30 @@ +#ifndef _SCORER_H_ +#define _SCORER_H_ + +#include <memory> +#include <string> +#include <vector> + +using namespace std; + +class Feature; +class FeatureContext; + +class Scorer { + public: + Scorer(const vector<shared_ptr<Feature> >& features); + + virtual ~Scorer(); + + virtual vector<double> Score(const FeatureContext& context) const; + + virtual vector<string> GetFeatureNames() const; + + protected: + Scorer(); + + private: + vector<shared_ptr<Feature> > features; +}; + +#endif |