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
From what I can see, rapidfuzz doesn't work with all iterables.
Here's a piece of code to demonstrate it:
fromfuzzywuzzyimportprocessasfuzzywuzzy# version 0.18.0fromrapidfuzzimportprocessasrapidfuzz# version 0.7.7d= {"cow": "", "sheep": ""}
# works in fuzzywuzzy:fw=fuzzywuzzy.extractOne("cow", d.keys())
print(fw)
# ('cow', 100)# doesn't work in rapidfuzz:rf=rapidfuzz.extractOne("cow", d.keys())
print(rf)
# None
NOTE: there is an easy fix - converting the iterable to a list. But doing so is undesired as it would slow the algorithm down.
The text was updated successfully, but these errors were encountered:
From what I can see, rapidfuzz doesn't work with all iterables.
Here's a piece of code to demonstrate it:
NOTE: there is an easy fix - converting the iterable to a list. But doing so is undesired as it would slow the algorithm down.
The text was updated successfully, but these errors were encountered: