summaryrefslogtreecommitdiff
path: root/extractor/scorer.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-03-06 15:25:54 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-03-06 15:25:54 +0000
commitab5367aa2c42126a04034cd7d3cec125bca399ca (patch)
tree9698d9d23ed7618554c61624f8899eb8ba9b3b09 /extractor/scorer.h
parent245e705ac7b6fca80a7aa4898f5467053ec2c585 (diff)
Namespace for extractor.
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 ba71a6ee..c31db0ca 100644
--- a/extractor/scorer.h
+++ b/extractor/scorer.h
@@ -7,16 +7,20 @@
using namespace std;
-class Feature;
-class FeatureContext;
+namespace extractor {
+
+namespace features {
+ class Feature;
+ class FeatureContext;
+} // namespace features
class Scorer {
public:
- Scorer(const vector<shared_ptr<Feature> >& features);
+ Scorer(const vector<shared_ptr<features::Feature> >& features);
virtual ~Scorer();
- virtual vector<double> Score(const FeatureContext& context) const;
+ virtual vector<double> Score(const features::FeatureContext& context) const;
virtual vector<string> GetFeatureNames() const;
@@ -24,7 +28,9 @@ class Scorer {
Scorer();
private:
- vector<shared_ptr<Feature> > features;
+ vector<shared_ptr<features::Feature> > features;
};
+} // namespace extractor
+
#endif