You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fuzz.partial_ratio('["12343412142 . Freddies Flowers jasdfoajasjdha DE this is a partial test blue hhgg: 1234567896 jakdlas jaljkdaf 978978777 CRED: 09876556677 hgtf: djalakdhnnhgn7777 abc: uuhhggg", "ljkadsfjkhfadjkh778"] jjhha (Europe) et Cie, S.C.A.'.lower(), 'c&a')
Returns: 33
However
process.extract('["12343412142 . Freddies Flowers jasdfoajasjdha DE this is a partial test blue hgg: 1234567896 jakdlas jaljkdaf 978978777 CRED: 09876556677 hgtf: djalakdhnnhgn7777 abc: uuhhggg", "ljkadsfjkhfadjkh778"] jjhha (Europe) et Cie, S.C.A.'.lower(), ['c&a', 'this is a partial', 'test'], scorer=fuzz.partial_ratio)
Returns: [('c&a', 100), ('this is a partial', 100), ('test', 100)]
So the returned score for 'c&a' is 33 for fuzz.partial_ratio but 100 when using extract with fuzz.partial_ratio as scorer.
The text was updated successfully, but these errors were encountered:
The issue seem to be related to the processor parameter as setting processor=None solves the issue:
process.extract('["12343412142 . Freddies Flowers jasdfoajasjdha DE this is a partial test blue hgg: 1234567896 jakdlas jaljkdaf 978978777 CRED: 09876556677 hgtf: djalakdhnnhgn7777 abc: uuhhggg", "ljkadsfjkhfadjkh778"] jjhha (Europe) et Cie, S.C.A.'.lower(), ['c&a', 'this is a partial', 'test'], scorer=fuzz.partial_ratio, processor=None)
Returns:
[('this is a partial', 100), ('test', 100), ('c&a', 33)]
Fuzz Partial Ratio:
Returns:
33
However
Returns:
[('c&a', 100), ('this is a partial', 100), ('test', 100)]
So the returned score for 'c&a' is 33 for
fuzz.partial_ratio
but 100 when using extract withfuzz.partial_ratio
as scorer.The text was updated successfully, but these errors were encountered: