Package org.languagetool.rules
Class ScoredConfusionSet
- java.lang.Object
-
- org.languagetool.rules.ScoredConfusionSet
-
public class ScoredConfusionSet extends Object
Words that can easily be confused - for internal use only. Even though there can be more words in the confusionWords, usually there are two, as the factor is specific for this pair of words. A ScoredConfusionSet has a positive score associated with it. TODO remove code duplication with ConfusionSet
-
-
Constructor Summary
Constructors Constructor Description ScoredConfusionSet(float score, List<ConfusionString> words)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<String>
getConfusionTokens()
float
getScore()
List<Optional<String>>
getTokenDescriptions()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ScoredConfusionSet
public ScoredConfusionSet(float score, List<ConfusionString> words)
- Parameters:
score
- the score that a string must get at least to be considered a correction, must be > 0
-
-