blob: 274b336432818e5d78975f324d74c9f2dc7a56c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "target_given_source_coherent.h"
#include <cmath>
double TargetGivenSourceCoherent::Score(const FeatureContext& context) const {
double prob = (double) context.pair_count / context.num_samples;
return prob > 0 ? -log10(prob) : MAX_SCORE;
}
string TargetGivenSourceCoherent::GetName() const {
return "EgivenFCoherent";
}
|