8000 GitHub - Joshix-1/ukkonen: Implementation of bounded Levenshtein distance (Ukkonen)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Joshix-1/ukkonen

 
 

Repository files navigation

build status pre-commit.ci status

ukkonen

Implementation of bounded Levenshtein distance (Ukkonen)

port

this is a port of ukkonen from javascript to c++ / python via cffi.

installation

pip install ukkonen
  • wheels should be available on pypi in most cases

api

distance(s1: str, s2: str, k: int) -> int

compute the edit distance, bounded by k

>>> import ukkonen
>>> ukkonen.distance('hello', 'world', 5)
4
>>> ukkonen.distance('hello', 'world', 2)
2

About

Implementation of bounded Levenshtein distance (Ukkonen)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 58.0%
  • Python 35.6%
  • C 6.4%
0