Tabiiy tilni qayta ishlashda so‘zlar orasidagi masofani aniqlash algoritmlaridan foydalanish
77
# Eng foydali o‘zgarishni
tanlash:
lev[i][j] = min(insertion,
deletion, replacement)
#Levenshtein Masofasini ekranga chiqar
print(“Levenshtein Masofasi: “, lev[len(a)][len(b)])