Closed daniel17903 closed 5 years ago
We only ported the python-levenshtein
module and not the built-in python difflib (for speed). Are you using the Python library with the python-levenshtein
module installed?
ie. instead of
pip install fuzzywuzzy
use
pip install fuzzywuzzy[speedup]
Thanks. When installing fuzzywuzzy[speedup] the results match. I wasn't aware that using different libraries impacts the output.
Hi, while porting some python code to java I discovered that the Token Sort and Token Set Ratios calculated by this library oftentimes do not match the ones calculated by the python fuzzywuzzy library.
Here is an example: Python Code:
Output:
Java Code:
Output:
Where is this difference coming from? Shouldn't these two outputs be equal?