round result
parent
44a84ae751
commit
d11b812a0e
|
@ -364,7 +364,7 @@ def partial_string_based(str1, str2):
|
|||
|
||||
"""
|
||||
from rapidfuzz import fuzz
|
||||
result = fuzz.token_sort_ratio(str1, str2)
|
||||
result = round(fuzz.token_sort_ratio(str1, str2))
|
||||
logger.debug("--\t\tpartial_string_based '%s' '%s'\tresult: '%s'", str1, str2, result)
|
||||
return result / 100.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue