fuzzywuzzy icon indicating copy to clipboard operation
fuzzywuzzy copied to clipboard

extractOne, scorer = partial_ratio, and string capitalization

Open wessonmo opened this issue 7 years ago • 0 comments

When I execute an extractOne like process.extractOne('ab', ['ab wertyu'], scorer = fuzz.partial_ratio), the result is: ('ab wertyu', 100).

However, when I take the same strings and capitalize some letters process.extractOne('AB', ['AB wertyu'], scorer = fuzz.partial_ratio), I get: ('AB wertyu', 0).

The problem only seems to be with extractOne because when I use fuzz.partial_ratio('AB', 'AB wertyu'), the result is: 100.

Is there just something I don't understand about the way extractOne works or is this an issue?

wessonmo avatar Jun 27 '17 05:06 wessonmo