Package org.omegat.core.matching
Class FuzzyMatcher
- java.lang.Object
-
- org.omegat.core.matching.FuzzyMatcher
-
public final class FuzzyMatcher extends java.lang.Object
The class, responsible for building the list of fuzzy matches between the source text strings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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).
-
-
-
Method Detail
-
buildSimilarityData
public static byte[] buildSimilarityData(Token[] sourceTokens, Token[] matchTokens)
Builds the similarity data for color highlight in match window.
-
calcSimilarity
public static int calcSimilarity(ISimilarityCalculator distanceCalculator, Token[] str, Token[] cand)
Calculate similarity for tokens arrays(percent).- Parameters:
str
- original string tokenscand
- candidate string tokens- Returns:
- similarity in percents
-
-