Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different behavior with fuzzywuzzy #102

Closed
sillybun opened this issue May 2, 2021 · 5 comments
Closed

Different behavior with fuzzywuzzy #102

sillybun opened this issue May 2, 2021 · 5 comments

Comments

@sillybun
Copy link

sillybun commented May 2, 2021

image

In [25]: import fuzzywuzzy                                                     

In [26]: import rapidfuzz                                                      

In [27]: rapidfuzz.fuzz.ratio("prod", "random")                                
Out[27]: 40.0

In [28]: fuzzywuzzy.fuzz.ratio("prod", "random")                               
Out[28]: 40

In [29]: rapidfuzz.fuzz.partial_ratio("prod", "random")                        
Out[29]: 50.0

In [30]: fuzzywuzzy.fuzz.partial_ratio("prod", "random")                       
Out[30]: 25
@sillybun
Copy link
Author

sillybun commented May 2, 2021

I don't know whether it's a bug or it's a feature. But the difference of partial_ratio makes me confused.

@sillybun
Copy link
Author

sillybun commented May 2, 2021

I think it's a bug of fuzzywuzzy? because in fuzzywuzzy, "pred" is more similar to "random" than "prod". I cannot understand why.

@sillybun
Copy link
Author

sillybun commented May 2, 2021

seatgeek/fuzzywuzzy#313

@maxbachmann
Copy link
Member

This is a bug in FuzzyWuzzy. You can find my explanation in your issue at FuzzyWuzzy: seatgeek/fuzzywuzzy#313

@sillybun
Copy link
Author

sillybun commented May 2, 2021

Thanks a lot!!! great work~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants