Package ca.phon.ipa
Class LevenshteinDistance
java.lang.Object
ca.phon.ipa.LevenshteinDistance
Implementation of Levenshtein distance (https://en.wikipedia.org/wiki/Levenshtein_distance)
for Phon transcripts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
distance
(IPATranscript ipa) static int
static int
distance
(IPATranscript a, IPATranscript b, Comparator<IPAElement> comparator) Calculate LevenshteinDistance for two IPATranscripts.
-
Constructor Details
-
LevenshteinDistance
-
-
Method Details
-
distance
-
distance
Calculate LevenshteinDistance for two IPATranscripts.- Parameters:
a
-b
-comparator
-- Returns:
-
distance
-