summaryrefslogtreecommitdiff
path: root/extractor/features/is_source_singleton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/features/is_source_singleton.cc')
-rw-r--r--extractor/features/is_source_singleton.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/extractor/features/is_source_singleton.cc b/extractor/features/is_source_singleton.cc
index 98d4e5fe..ab54e51a 100644
--- a/extractor/features/is_source_singleton.cc
+++ b/extractor/features/is_source_singleton.cc
@@ -2,6 +2,9 @@
#include <cmath>
+namespace extractor {
+namespace features {
+
double IsSourceSingleton::Score(const FeatureContext& context) const {
return context.source_phrase_count == 1;
}
@@ -9,3 +12,6 @@ double IsSourceSingleton::Score(const FeatureContext& context) const {
string IsSourceSingleton::GetName() const {
return "IsSingletonF";
}
+
+} // namespace features
+} // namespace extractor