Interface HStringSimilarity

    • Method Detail

      • calculate

        double calculate​(@NonNull
                         @NonNull HString first,
                         @NonNull
                         @NonNull HString second)
        Calculates the similarity between the two given HString
        Parameters:
        first - the first HString
        second - the second HString
        Returns:
        the similarity between first and second
      • fit

        void fit​(@NonNull
                 @NonNull DocumentCollection corpus)
        In certain cases a HStringSimilarity needs to collect corpus level statistics to determine similarity. The fit method allows implementations to perform this logic at a corpus level.
        Parameters:
        corpus - the corpus to fit the similarity measure to