Class 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 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 tokens
        cand - candidate string tokens
        Returns:
        similarity in percents