public class ConfusionSet extends Object
Constructor and Description |
---|
ConfusionSet(long factor,
List<ConfusionString> confusionStrings) |
ConfusionSet(long factor,
String... words) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getFactor() |
Set<ConfusionString> |
getSet() |
Set<ConfusionString> |
getUppercaseFirstCharSet() |
int |
hashCode() |
String |
toString() |
public ConfusionSet(long factor, List<ConfusionString> confusionStrings)
factor
- the factor that one string must be more probable than the other to be considered a correction, must be >= 1public ConfusionSet(long factor, String... words)
factor
- the factor that one string must be more probable than the other to be considered a correction, must be >= 1public long getFactor()
public Set<ConfusionString> getSet()
public Set<ConfusionString> getUppercaseFirstCharSet()