Enum BabelLemmaType

java.lang.Object
java.lang.Enum<BabelLemmaType>
it.uniroma1.lcl.babelnet.data.BabelLemmaType
All Implemented Interfaces:
LemmaType, Serializable, Comparable<BabelLemmaType>, java.lang.constant.Constable

public enum BabelLemmaType extends Enum<BabelLemmaType> implements LemmaType
Types of lemmas in BabelNet.
Author:
navigli
  • Enum Constant Details

    • HIGH_QUALITY

      public static final BabelLemmaType HIGH_QUALITY
      High quality lemmas, coming from professionally-curated resources (such as WordNet or WordAtlas) or reliable crowdsources resources.
    • POTENTIAL_NEAR_SYNONYM_OR_WORSE

      public static final BabelLemmaType POTENTIAL_NEAR_SYNONYM_OR_WORSE
      Mostly Wikipedia redirections, which might be synonyms, near synonyms or related terms.
    • AUTOMATIC_TRANSLATION

      public static final BabelLemmaType AUTOMATIC_TRANSLATION
      Lemmas resulting from automatic translations (suggested use only for automatic text processing).
  • Method Details

    • values

      public static BabelLemmaType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BabelLemmaType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromBabelSenseSource

      @Deprecated public static BabelLemmaType fromBabelSenseSource(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
      Deprecated.
      Gets the lemma type from a BabelSenseSource and its Language
      Parameters:
      source - the sense source
      language - the sense language
      Returns:
      the lemma type
    • fromBabelSenseSource

      public static BabelLemmaType fromBabelSenseSource(BabelSenseSource source)
      Gets the lemma type from a BabelSenseSource and its Language
      Parameters:
      source - the sense source
      Returns:
      the lemma type