commit | 1b0b5e2ba9d5db1fa180ba0478215660e3c2aac1 | [log] [tgz] |
---|---|---|
author | Antoine Rondelet <rondelet.antoine@gmail.com> | Thu Dec 29 20:03:59 2022 +0000 |
committer | Antoine Rondelet <rondelet.antoine@gmail.com> | Thu Dec 29 20:03:59 2022 +0000 |
tree | 9dcd77305706d5aa381f7d2ec055d4b13ca72cda | |
parent | fcdbf15217743cbe6622e025d0a99c9f8817cdc2 [diff] |
Switched distance to similarity for the Jaro-Winkler Similarity function in the docs
jellyfish is a library for approximate & phonetic matching of strings.
Source: https://github.com/jamesturk/jellyfish
Documentation: https://jamesturk.github.io/jellyfish/
Issues: https://github.com/jamesturk/jellyfish/issues
String comparison:
Phonetic encoding:
>>> import jellyfish >>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish') 2 >>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish') 0.89629629629629637 >>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs') 1 >>> jellyfish.metaphone(u'Jellyfish') 'JLFX' >>> jellyfish.soundex(u'Jellyfish') 'J412' >>> jellyfish.nysiis(u'Jellyfish') 'JALYF' >>> jellyfish.match_rating_codex(u'Jellyfish') 'JLLFSH'