Closed evyasonov closed 4 years ago
Hi @evyasonov , it's quiet easy actually!
>>> from strsimpy.levenshtein import Levenshtein
>>> lv = Levenshtein()
>>> lv.distance('Hello world'.split(), 'Hello brave new world'.split())
2
>>>
@luozhouyang Wow! Amazing! Thank you very much for your answer!
Hey
Thank you for the package! It's really amazing!
I'm wondering if it's possible to use words instead of characters in Levenshtein and Damerau-Levenshtein methods?
Result of a code below is 10:
But if I use words instead of characters in the algorithm, I get 2 (insert 'brave', insert 'new').
Is it possible?