summaryrefslogtreecommitdiff
path: root/extractor/features/is_source_target_singleton.h
blob: dacfebbabef05d17aa9cc5e01f944672bf78a1e1 (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_TARGET_SINGLETON_H_
#define _IS_SOURCE_TARGET_SINGLETON_H_

#include "feature.h"

namespace extractor {
namespace features {

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

  string GetName() const;
};

} // namespace features
} // namespace extractor

#endif