Package  Description 

org.apache.commons.text.similarity 
Provides algorithms for string similarity.

Modifier and Type  Class and Description 

class 
CosineDistance
Measures the cosine distance between two character sequences.

class 
HammingDistance
The hamming distance between two strings of equal length is the number of
positions at which the corresponding symbols are different.

class 
JaccardDistance
Measures the Jaccard distance of two sets of character sequence.

class 
JaroWinklerDistance
Measures the JaroWinkler distance of two character sequences.

class 
LevenshteinDetailedDistance
An algorithm for measuring the difference between two character sequences.

class 
LevenshteinDistance
An algorithm for measuring the difference between two character sequences.

class 
LongestCommonSubsequenceDistance
An edit distance algorithm based on the length of the longest common subsequence between two strings.

Modifier and Type  Method and Description 

EditDistance<R> 
EditDistanceFrom.getEditDistance()
Gets the edit distance.

Constructor and Description 

EditDistanceFrom(EditDistance<R> editDistance,
CharSequence left)
This accepts the edit distance implementation and the "left" string.

Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.