jayvdb / pypidb

PyPI client side database with SCM/VCS URLs
Apache License 2.0
13 stars 3 forks source link

Similarity function support for Python 2 #104

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

https://github.com/jayvdb/pypidb/issues/30 is the overarching issue for Python 2.

textdistance.RatcliffObershelp does not work on Python 2, which is causing parts of the failures on Python 2.

string_distance.ratcliff_obershelp looks very good, and is native so should be faster, but isnt installable on Python 2.

difflib.SequenceMatcher could be usable.

But for the moment, I am going with abydos.distance.RatcliffObershelp().dist