Skip to content

Levenshtein distance between two strings in julia

License

Notifications You must be signed in to change notification settings

venkr/Levenshtein.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levenshtein

Build Status Coverage Status GitHub license

Levenshtein distance between two strings in julia

This module provides a simple, but generic implementation of the Levenshtein distance function.

Installation

julia> Pkg.add("Levenshtein")

Usage

Standard Levenshtein distance

julia> levenshtein("polynomial", "exponential")
6

Levenshtein distance with custom insertion, deletion, substitution costs

julia> ins, del, sub = 3, 2, 1
(3,2,1)

julia> levenshtein("polynomial", "exponential", ins, del, sub)
8

About

Levenshtein distance between two strings in julia

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%