I´m trying to use FuzzyWuzzy to correct misspelled names in a text. However I can't get process.extract and process.extractOne to behave the way I expected them to.
from fuzzywuzzy import process
the_text = 'VICTOR HUGO e MARIANA VEIGA'
search_term = 'VEYGA'
the_text = the_text.split()
found_word = process.extract(search_term, the_text)
print(found_word)
This results in:
[('e', 90), ('VEIGA', 80), ('HUGO', 22), ('VICTOR', 18), ('MARIANA', 17)]
How can I get FuzzyWuzzy to correctly identify 'VEIGA' as the correct response?