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

#include "feature.h"

namespace extractor {
namespace features {

/**
 * Feature computing the ratio of the phrase pair count over all source phrase
 * occurrences (sampled).
 */
class TargetGivenSourceCoherent : public Feature {
 public:
  double Score(const FeatureContext& context) const;

  string GetName() const;
};

} // namespace features
} // namespace extractor

#endif