ztane / python-Levenshtein

The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
GNU General Public License v2.0
1.26k stars 155 forks source link

FR: docs with some example usage #68

Open jeanmonet opened 3 years ago

jeanmonet commented 3 years ago

Hi, would it be possible to add a few example in the documentation (or readme) for using this package (including import statement, etc)?

jabowery commented 3 years ago

The absence of an import statement in the README is a major flaw.

woctezuma commented 3 years ago

Looking at my old code, this works as follows:

import Levenshtein as lv

Then you call lv.distance() exactly as with this other package: https://maxbachmann.github.io/Levenshtein/levenshtein.html