summaryrefslogtreecommitdiff
path: root/extractor/scorer.h
blob: 5b328fb4e5ff61a0ced63b4f26f2cf677e2d6b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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);

  vector<double> Score(const FeatureContext& context) const;

  vector<string> GetFeatureNames() const;

 private:
  vector<shared_ptr<Feature> > features;
};

#endif