summaryrefslogtreecommitdiff
path: root/extractor/features/count_source_target.cc
blob: db0385e0f57c486fe93fda575b924420b468a35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "count_source_target.h"

#include <cmath>

namespace extractor {
namespace features {

double CountSourceTarget::Score(const FeatureContext& context) const {
  return log10(1 + context.pair_count);
}

string CountSourceTarget::GetName() const {
  return "CountEF";
}

} // namespace features
} // namespace extractor