Class EqualityWithStopwordAndNumberRemovalSpellingCorrection
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.external.services.stringEquality.EqualityWithStopwordAndNumberRemovalSpellingCorrection
- All Implemented Interfaces:
StringEquality
public class EqualityWithStopwordAndNumberRemovalSpellingCorrection
extends Object
implements StringEquality
This class considers two Strings to be equal when they contain the same tokens with stopwords removed.
Basic transformations like lowercasing are applied.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor with edit distance tolerance = 2.0f.EqualityWithStopwordAndNumberRemovalSpellingCorrection
(float maxAllowedDistance) -
Method Summary
-
Field Details
-
maxAllowedTolerance
public float maxAllowedTolerance
-
-
Constructor Details
-
EqualityWithStopwordAndNumberRemovalSpellingCorrection
public EqualityWithStopwordAndNumberRemovalSpellingCorrection()Default constructor with edit distance tolerance = 2.0f. -
EqualityWithStopwordAndNumberRemovalSpellingCorrection
public EqualityWithStopwordAndNumberRemovalSpellingCorrection(float maxAllowedDistance)
-
-
Method Details
-
isSameString
- Specified by:
isSameString
in interfaceStringEquality
-
getName
- Specified by:
getName
in interfaceStringEquality
-