This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitattributes | Sat Jul 26 05:14:06 -0700 2008 | |
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.textile | ||
| |
Setup.lhs | ||
| |
TODO | ||
| |
Text/ | ||
| |
edit-distance.cabal | ||
| |
import_wiki.lhs | ||
| |
release |
README.textile
Edit Distance Algorithms
You can help improve this README with extra snippets and advice by using the GitHub wiki.
Installing
To just install the library:
runghc Setup.lhs configure
runghc Setup.lhs build
sudo runghc Setup.lhs install
If you want to build the tests, to check it’s all working:
runghc Setup.lhs configure -ftests
runghc Setup.lhs build
dist/build/edit-distance-tests/edit-distance-tests
Description
Edit distances algorithms for fuzzy matching. Specifically, this library provides:
They have been fairly heavily optimized. Indeed, for situations where one of the strings is under 32 characters long I use a rather neat “bit vector” algorithm: see the authors paper and the associated errata for more information. The algorithms could be faster, but they aren’t yet slow enough to force me into improving the situation.
Example
Text.EditDistance> levenshteinDistance defaultEditCosts "witch" "kitsch"
2








