Query: text::levenshtein
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Levenshtein(3pm) User Contributed Perl Documentation Levenshtein(3pm)NAMEText::Levenshtein - An implementation of the Levenshtein edit distanceSYNOPSISuse Text::Levenshtein qw(distance); print distance("foo","four"); # prints "2" print fastdistance("foo","four"); # prints "2" faster my @words=("four","foo","bar"); my @distances=distance("foo",@words); print "@distances"; # prints "2 0 3"DESCRIPTIONThis module implements the Levenshtein edit distance. The Levenshtein edit distance is a measure of the degree of proximity between two strings. This distance is the number of substitutions, deletions or insertions ("edits") needed to transform one string into the other one (and vice versa). When two strings have distance 0, they are the same. A good point to start is: <http://www.merriampark.com/ld.htm> "fastdistance" can be called with two scalars and is faster in most cases. See also Text::LevenshteinXS on CPAN if you do not require a perl-only implementation. It is extremely faster in nearly all cases. See also Text::WagnerFischer on CPAN for a configurable edit distance, i.e. for configurable costs (weights) for the edits.AUTHORCopyright 2002 Dree Mistrut <dree@friul.it> This package is free software and is provided "as is" without express or implied warranty. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2009-01-19 Levenshtein(3pm)
Related Man Pages |
---|
ftff(1) - debian |
text::glob(3) - osx |
graph::adjacencymatrix(3pm) - debian |
text::glob(3pm) - debian |
weather::com::units(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
1 |
Strings edit 2.0 (Default branch) |
Strings edit 2.1 (Default branch) |
Converting distance list to distance matrix in R |
Calculate average, azimut and distance |