public final class FuzzyMatcher
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
buildSimilarityData(Token[] sourceTokens,
Token[] matchTokens)
Builds the similarity data for color highlight in match window.
|
static int |
calcSimilarity(ISimilarityCalculator distanceCalculator,
Token[] str,
Token[] cand)
Calculate similarity for tokens arrays(percent).
|
public static byte[] buildSimilarityData(Token[] sourceTokens, Token[] matchTokens)
public static int calcSimilarity(ISimilarityCalculator distanceCalculator, Token[] str, Token[] cand)
str
- original string tokenscand
- candidate string tokens