diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-03-06 15:25:54 +0000 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-03-06 15:25:54 +0000 |
commit | e1ffc4886b98f7ddcd2ec30d740aa2de8282cd8e (patch) | |
tree | ca51b9fc3b61f4177caaef467c9add26737cfc49 /extractor/features/target_given_source_coherent.cc | |
parent | a283adae755aa8617119afb283b9b874f64cf911 (diff) |
Namespace for extractor.
Diffstat (limited to 'extractor/features/target_given_source_coherent.cc')
-rw-r--r-- | extractor/features/target_given_source_coherent.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extractor/features/target_given_source_coherent.cc b/extractor/features/target_given_source_coherent.cc index 274b3364..c4551d88 100644 --- a/extractor/features/target_given_source_coherent.cc +++ b/extractor/features/target_given_source_coherent.cc @@ -2,6 +2,9 @@ #include <cmath> +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; @@ -10,3 +13,6 @@ double TargetGivenSourceCoherent::Score(const FeatureContext& context) const { string TargetGivenSourceCoherent::GetName() const { return "EgivenFCoherent"; } + +} // namespace features +} // namespace extractor |