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

#include <cmath>

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

string IsSourceSingleton::GetName() const {
  return "IsSingletonF";
}