79521436

Date: 2025-03-19 21:40:50
Score: 1
Natty:
Report link

nltk.edit_distance() is the first reputable implementation I could find of Levenshtein edit-distance.

python
from nltk import edit_distance

# Prints '2', one deletion plus one insertion
print(edit_distance('apple','appel'))

Mostly just sharing this because it's what I was looking for when I found this page.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • Low reputation (1):
Posted by: SelfTaughtProgrammer