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
  • Enum Constant Details

  • Constructor Details

    • SuggestionType

      private SuggestionType()
  • Method Details

    • values

      public static SuggestedReplacement.SuggestionType[] 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

      public static SuggestedReplacement.SuggestionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null