fuzzywuzzy icon indicating copy to clipboard operation
fuzzywuzzy copied to clipboard

what is the algorithm used for the extract process?

Open fandyputram opened this issue 6 years ago • 2 comments

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?

fandyputram avatar Aug 05 '19 08:08 fandyputram

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.

PotStove avatar Aug 15 '19 06:08 PotStove

you can specify what function you want to use for extraction:

example: process.extractOne(sentence, choises, scorer=fuzz.partial_ratio)

progressify avatar Sep 17 '19 14:09 progressify