Skip to content

Instantly share code, notes, and snippets.

View atdaemon's full-sized avatar

Anish Tambe atdaemon

View GitHub Profile
"""
Print dict words that are closest to given word, upto a set distance (of 2),
sorted acc to increasing distance
Levenshtein module installed using -
pip install python-levenshtein
"""
from Levenshtein import distance
import os