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 | ab5367aa2c42126a04034cd7d3cec125bca399ca (patch) | |
tree | 9698d9d23ed7618554c61624f8899eb8ba9b3b09 /extractor/features/count_source_target.cc | |
parent | 245e705ac7b6fca80a7aa4898f5467053ec2c585 (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 |