blob: 03b3c62cf06743e089980fc28efe921a0c5bde7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "is_source_target_singleton.h"
#include <cmath>
namespace extractor {
namespace features {
double IsSourceTargetSingleton::Score(const FeatureContext& context) const {
return context.pair_count == 1;
}
string IsSourceTargetSingleton::GetName() const {
return "IsSingletonFE";
}
} // namespace features
} // namespace extractor
|