Package org.languagetool.rules
Enum Class SuggestedReplacement.SuggestionType
java.lang.Object
java.lang.Enum<SuggestedReplacement.SuggestionType>
org.languagetool.rules.SuggestedReplacement.SuggestionType
- All Implemented Interfaces:
Serializable,Comparable<SuggestedReplacement.SuggestionType>,Constable
- Enclosing class:
SuggestedReplacement
public static enum SuggestedReplacement.SuggestionType
extends Enum<SuggestedReplacement.SuggestionType>
classify the type of the suggestion
so that downstream tasks (e.g. resorting, as in
BERTSuggestionRanking)
can treat them accordingly
Default - default, no special treatment
Translation - offers to translate words from native language into text language;
suggestion ranking extends size of list of candidates
Curated - a manually curated suggestion / special case / ...; don't resort-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SuggestedReplacement.SuggestionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Default
-
Translation
-
Curated
-
-
Constructor Details
-
SuggestionType
private SuggestionType()
-
-
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
-