Interface SMStringIsolatedMapping
- All Superinterfaces:
SimilarityMeasure
- All Known Implementing Classes:
SMStringIsolatedMappingImpl
General
This similarity measure computes the similarity of two String
s 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 Summary
Modifier and TypeFieldDescriptionstatic final String
The default delimiter value is "\\s+".static final String
Name of similarity measure is "StringIsolatedMapping".Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDelimiter
(String delimiter) void
setSimilarityToUse
(String measureName) This measure requires to select anotherSimilarityMeasure
for the similarity computation of the tokens.Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Field Details
-
NAME
Name of similarity measure is "StringIsolatedMapping".- See Also:
-
DEFAULT_DELIMITER
The default delimiter value is "\\s+".- See Also:
-
-
Method Details
-
getDelimiter
String getDelimiter()- Returns:
- delimiter used for tokenization
-
setDelimiter
- 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
This measure requires to select anotherSimilarityMeasure
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.
-