Package opennlp.spellcheck
Enum Class Verbosity
- All Implemented Interfaces:
Serializable,Comparable<Verbosity>,Constable
Controls how many suggestions a
SpellChecker.lookup(java.lang.String, opennlp.spellcheck.Verbosity, int) call returns and
with how much effort they are gathered.
The semantics follow the SymSpell reference implementation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns every suggestion within the requested maximum edit distance, ordered by ascending edit distance and then descending frequency.Returns all suggestions that share the smallest edit distance found, ordered by descending frequency.Returns the single suggestion with the smallest edit distance; ties are broken by the highest term frequency. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TOP
Returns the single suggestion with the smallest edit distance; ties are broken by the highest term frequency. Cheapest to compute. -
CLOSEST
Returns all suggestions that share the smallest edit distance found, ordered by descending frequency. -
ALL
Returns every suggestion within the requested maximum edit distance, ordered by ascending edit distance and then descending frequency.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-