Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def levenshtein_distance(s1, s2):
|
|
42 |
|
43 |
return previous_row[-1]
|
44 |
|
45 |
-
def string_similarity_index(original_text, comparison_text, threshold=0.
|
46 |
"""
|
47 |
Calculate the similarity index between two strings based on Levenshtein distance
|
48 |
and compare it to a threshold.
|
|
|
42 |
|
43 |
return previous_row[-1]
|
44 |
|
45 |
+
def string_similarity_index(original_text, comparison_text, threshold=0.9):
|
46 |
"""
|
47 |
Calculate the similarity index between two strings based on Levenshtein distance
|
48 |
and compare it to a threshold.
|