Interface HStringSimilarity

    • Method Detail

      • calculate

        double calculate​(@NonNull
                         @NonNull HString first,
                         @NonNull HString second)
        Calculates the similarity between the two given HString
        first - the first HString
        second - the second HString
        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.
        corpus - the corpus to fit the similarity measure to