public class UnifierConfiguration extends Object
Constructor and Description |
---|
UnifierConfiguration() |
Modifier and Type | Method and Description |
---|---|
Unifier |
createUnifier() |
Map<String,List<String>> |
getEquivalenceFeatures() |
Map<org.languagetool.rules.patterns.EquivalenceTypeLocator,PatternToken> |
getEquivalenceTypes() |
void |
setEquivalence(String feature,
String type,
PatternToken elem)
Prepares equivalence types for features to be tested.
|
public final void setEquivalence(String feature, String type, PatternToken elem)
PatternToken
s. They create an equivalence set (with
abstraction).feature
- Feature to be tested, like gender, grammatical case or number.type
- Type of equivalence for the feature, for example plural, first person, genitive.elem
- Element specifying the equivalence.public Map<org.languagetool.rules.patterns.EquivalenceTypeLocator,PatternToken> getEquivalenceTypes()
public Unifier createUnifier()