diff --git a/chatterbot/comparisons.py b/chatterbot/comparisons.py index fc5f166be..af10508b6 100644 --- a/chatterbot/comparisons.py +++ b/chatterbot/comparisons.py @@ -47,7 +47,7 @@ def levenshtein_distance(statement, other_statement): ) # Calculate a decimal percent of the similarity - percent = int(round(100 * similarity.ratio())) / 100.0 + percent = round(similarity.ratio(), 2) return percent