summaryrefslogtreecommitdiff
path: root/extractor/features/is_source_target_singleton.cc
blob: 31d365323fc9ed130b80f9648557ae83a63070f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "is_source_target_singleton.h"

#include <cmath>

double IsSourceTargetSingleton::Score(const FeatureContext& context) const {
  return context.pair_count == 1;
}

string IsSourceTargetSingleton::GetName() const {
  return "IsSingletonFE";
}