def double_jaro(args, login): jaro = jaro_Winkler(args[0], login["first_name"]) if len(args) >= 2: jaro += jaro_Winkler(args[1], login["last_name"]) else: jaro *= 2 return jaro
def find(s1): ma = float(0.0) ans = "" for x in file1.readlines(): temp = jaro_Winkler(s1, x) if temp > ma and temp > 0.75: ans = x ma = temp return ans