Do you want to know the information regarding “fuzzy lookup in python”. If yes, you’re in the correct article.
fuzzy lookup in python
from fuzzywuzzy import process str2Match = "apple inc" strOptions = ["Apple Inc.","apple park","apple incorporated","iphone"] Ratios = process.extract(str2Match,strOptions) print(Ratios) # You can also select the string with the highest matching percentage highest = process.extractOne(str2Match,strOptions) print(highest)
I hope this article helps you to know about “fuzzy lookup in python”. If you have any doubts regarding this tutorial please let us know via the comment section. Share this article with your friends and family via social networks.