Skip to content

Commit f1811ea

Browse files
authored
Merge pull request #12 from BritishGeologicalSurvey/fuzzy-playground
Change default fuzzy matching function to token_sort_ratio
2 parents b771940 + 66305f1 commit f1811ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyvolcans/pyvolcans_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def fuzzy_matching(volcano_name, limit=10):
121121
List of volcanoes with similar names to the target volcano
122122
"""
123123
matches = process.extract(volcano_name, VOLCANO_NAMES[0], limit=limit,
124-
scorer=fuzz.UQRatio)
124+
scorer=fuzz.token_sort_ratio)
125125

126126
match_idx = [item[2] for item in matches]
127127
volcano_info = \

0 commit comments

Comments
 (0)