public static enum SuggestedReplacement.SuggestionType extends Enum<SuggestedReplacement.SuggestionType>
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 resortEnum Constant and Description |
---|
Curated |
Default |
Translation |
Modifier and Type | Method and Description |
---|---|
static SuggestedReplacement.SuggestionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SuggestedReplacement.SuggestionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuggestedReplacement.SuggestionType Default
public static final SuggestedReplacement.SuggestionType Translation
public static final SuggestedReplacement.SuggestionType Curated
public static SuggestedReplacement.SuggestionType[] values()
for (SuggestedReplacement.SuggestionType c : SuggestedReplacement.SuggestionType.values()) System.out.println(c);
public static SuggestedReplacement.SuggestionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null