Interface SMStringCosine

  • All Superinterfaces:
    SimilarityMeasure, SMString
    All Known Implementing Classes:

    public interface SMStringCosine
    extends SMString
    Measures the Cosine similarity of two vectors of an inner product space and compares the angle between them. For further explanation about the Cosine Similarity, refer to

    The comparison can be case sensitive or insensitive. The delimiter can be defined by a Regex, the default is a space character.

    Tobias Dahlem
    • Method Detail

      • getDelimiter

        String getDelimiter()
      • setDelimiter

        void setDelimiter​(String delimiter)
      • isCaseSensitive

        boolean isCaseSensitive()
      • setCaseInsensitive

        void setCaseInsensitive()
      • setCaseSensitive

        void setCaseSensitive()