Jellyfish

Jellyfish supports reasonably fast implementations of almost all popular edit distance functions (Recall how the edit distance functions tell you how similar two sequences/strings are). While FuzzyWuzzy supported mainly Levenshtein distance, this package supports some more string comparison utilities:

  • Levenshtein distance
  • Damerau-Levenshtein distance
  • Jaro distance
  • Jaro-Winkler distance
  • Match rating approach comparison
  • Hamming distance

Additionally, it supports phonetic encodings for English.

Use the following code to install Jellyfish on your machine:

import sys# !{sys.executable} -m pip install jellyfish

Let's try importing the package and setting up some examples to try out:

import jellyfishcorrect_example = ('Narendra ...

Get Natural Language Processing with Python Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.