#include "target_given_source_coherent.h" #include namespace extractor { namespace features { 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"; } } // namespace features } // namespace extractor