1 2 3 4 5 6 7 8 9 10 11
#include "count_source_target.h" #include <cmath> double CountSourceTarget::Score(const FeatureContext& context) const { return log10(1 + context.pair_count); } string CountSourceTarget::GetName() const { return "CountEF"; }