Class SMStringLevenshteinImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.string.impl.SMStringImpl
de.uni_trier.wi2.procake.similarity.base.string.impl.SMStringLevenshteinImpl
- All Implemented Interfaces:
SMString
,SMStringLevenshtein
,SimilarityMeasure
- Author:
- rmaximi
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.string.SMStringLevenshtein
DEFAULT_CASE_SENSITIVE, DEFAULT_THRESHOLD, NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) The system name can be used to distinguish the similarity measures.int
boolean
boolean
void
void
void
setThreshold
(int threshold) Methods inherited from class de.uni_trier.wi2.procake.similarity.base.string.impl.SMStringImpl
isSimilarityFor
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, initializeBasedOn, isAggregate, isForceOverride, isInterval, isNumeric, isObject, isReusable, isSet, isTable, isTaxonomy, isText, setDataClass, setForceOverride, setName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
getDataClass, getName, isForceOverride, isReusable, setForceOverride
-
Constructor Details
-
SMStringLevenshteinImpl
public SMStringLevenshteinImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Returns:
-
getSystemName
Description copied from interface:SimilarityMeasure
The system name can be used to distinguish the similarity measures. Each similarity measure that can be instantiated contains a static final field called NAME representing the system name, e.g.,SMAggregateEuclidian.NAME
The system name must also be given during initialization, see
SimilarityModel.createSimilarityMeasure(String, DataClass)
.- Specified by:
getSystemName
in interfaceSimilarityMeasure
- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-
isCaseInsensitive
public boolean isCaseInsensitive()- Specified by:
isCaseInsensitive
in interfaceSMStringLevenshtein
-
isCaseSensitive
public boolean isCaseSensitive()- Specified by:
isCaseSensitive
in interfaceSMStringLevenshtein
-
setCaseInsensitive
public void setCaseInsensitive()- Specified by:
setCaseInsensitive
in interfaceSMStringLevenshtein
- See Also:
-
setCaseSensitive
public void setCaseSensitive()- Specified by:
setCaseSensitive
in interfaceSMStringLevenshtein
- See Also:
-
getThreshold
public int getThreshold()- Specified by:
getThreshold
in interfaceSMStringLevenshtein
-
setThreshold
public void setThreshold(int threshold) - Specified by:
setThreshold
in interfaceSMStringLevenshtein
-