fuzzywuzzy
fuzzywuzzy copied to clipboard
what is the algorithm used for the extract process?
i've try several function from the fuzzywuzzy library and i've noticed that the process.extract and fuzzy.ratio return different score. Is the algorithm used in both of the function is different? if yes, what algorithm being used?
I think it depend on the scorer param of process.extract. Default is fuzz.WRatio which differs from fuzzy.ratio. May check the function comment for detail.
you can specify what function you want to use for extraction:
example:
process.extractOne(sentence, choises, scorer=fuzz.partial_ratio)