summaryrefslogtreecommitdiff
path: root/extractor/features
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/features')
-rw-r--r--extractor/features/is_source_singleton.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extractor/features/is_source_singleton.cc b/extractor/features/is_source_singleton.cc
index ab54e51a..1abb486f 100644
--- a/extractor/features/is_source_singleton.cc
+++ b/extractor/features/is_source_singleton.cc
@@ -6,7 +6,7 @@ namespace extractor {
namespace features {
double IsSourceSingleton::Score(const FeatureContext& context) const {
- return context.source_phrase_count == 1;
+ return fabs(context.source_phrase_count - 1) < 1e-6;
}
string IsSourceSingleton::GetName() const {