Interface SMStringIsolatedMapping

All Superinterfaces:
SimilarityMeasure
All Known Implementing Classes:
SMStringIsolatedMappingImpl

public interface SMStringIsolatedMapping extends SimilarityMeasure

General

This similarity measure computes the similarity of two Strings by taking the similarity of the tokens into account. It always computes the the similarity of one query token to the best matching case token and reports the average of these similarities. The tokenization depends on the used delimiter regex. As default, \s+ is used as regex.

This measure requires to select another SimilarityMeasure for the similarity computation of the tokens. Therefore, the method setSimilarityToUse(String) is provided to set the name of the respective measure. If the given similarity measure name is not found or not set, the measure will throw an exception.

Author:
Christian Zeyen
  • Field Details

  • Method Details

    • getDelimiter

      String getDelimiter()
      Returns:
      delimiter used for tokenization
    • setDelimiter

      void setDelimiter(String delimiter)
      Parameters:
      delimiter - used for tokenization
    • getSimilarityToUse

      String getSimilarityToUse()
      Returns:
      The defined name of the SimilarityMeasure that should be used for the tokens.
      See Also:
    • setSimilarityToUse

      void setSimilarityToUse(String measureName)
      This measure requires to select another SimilarityMeasure for the similarity computation of the tokens. This method is used to set the name of the respective measure. If the given similarity measure name is not found or not set, the measure will throw an exception.
      Parameters:
      measureName - The name of the similarity measure that should be used for the tokens.