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/count_source_target.cc | |
parent | a283adae755aa8617119afb283b9b874f64cf911 (diff) |
Namespace for extractor.
Diffstat (limited to 'extractor/features/count_source_target.cc')
-rw-r--r-- | extractor/features/count_source_target.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extractor/features/count_source_target.cc b/extractor/features/count_source_target.cc index 9441b451..db0385e0 100644 --- a/extractor/features/count_source_target.cc +++ b/extractor/features/count_source_target.cc @@ -2,6 +2,9 @@ #include <cmath> +namespace extractor { +namespace features { + double CountSourceTarget::Score(const FeatureContext& context) const { return log10(1 + context.pair_count); } @@ -9,3 +12,6 @@ double CountSourceTarget::Score(const FeatureContext& context) const { string CountSourceTarget::GetName() const { return "CountEF"; } + +} // namespace features +} // namespace extractor |