summaryrefslogtreecommitdiff
path: root/extractor/features/is_source_singleton.h
blob: b8352d0e40103d5a75ed841d95474f29f83f0a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _IS_SOURCE_SINGLETON_H_
#define _IS_SOURCE_SINGLETON_H_

#include "feature.h"

namespace extractor {
namespace features {

/**
 * Boolean feature checking if the source phrase occurs only once in the data.
 */
class IsSourceSingleton : public Feature {
 public:
  double Score(const FeatureContext& context) const;

  string GetName() const;
};

} // namespace features
} // namespace extractor

#endif