From cff4beba26fbd7fe086a66ae15be1d9866d6fdb4 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 8 Jun 2012 14:11:02 +0530 Subject: [PATCH] increase fuzzy threshhold --- chaloBEST/mumbai/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaloBEST/mumbai/views.py b/chaloBEST/mumbai/views.py index d9289ce..a04e914 100644 --- a/chaloBEST/mumbai/views.py +++ b/chaloBEST/mumbai/views.py @@ -113,14 +113,14 @@ def fuzzystops(request): s1 = unr.from_stop.name.lower() s2 = unr.from_stop_txt.lower() from_ratio = fuzzprocess.ratio(s1,s2) - if from_ratio < 50: + if from_ratio < 70: froms_arr.append( (unr, from_ratio,) ) s3 = unr.to_stop.name.lower() s4 = unr.to_stop_txt.lower() to_ratio = fuzzprocess.ratio(s3,s4) - if to_ratio < 50: + if to_ratio < 70: tos_arr.append( (unr, to_ratio,) )