Enum BabelLemmaType
- All Implemented Interfaces:
LemmaType, Serializable, Comparable<BabelLemmaType>, java.lang.constant.Constable
Types of lemmas in BabelNet.
- Author:
- navigli
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLemmas resulting from automatic translations (suggested use only for automatic text processing).High quality lemmas, coming from professionally-curated resources (such as WordNet or WordAtlas) or reliable crowdsources resources.Mostly Wikipedia redirections, which might be synonyms, near synonyms or related terms. -
Method Summary
Modifier and TypeMethodDescriptionstatic BabelLemmaTypefromBabelSenseSource(BabelSenseSource source) Gets the lemma type from aBabelSenseSourceand itsLanguagestatic BabelLemmaTypefromBabelSenseSource(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Deprecated.static BabelLemmaTypeReturns the enum constant of this type with the specified name.static BabelLemmaType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HIGH_QUALITY
High quality lemmas, coming from professionally-curated resources (such as WordNet or WordAtlas) or reliable crowdsources resources. -
POTENTIAL_NEAR_SYNONYM_OR_WORSE
Mostly Wikipedia redirections, which might be synonyms, near synonyms or related terms. -
AUTOMATIC_TRANSLATION
Lemmas resulting from automatic translations (suggested use only for automatic text processing).
-
-
Method Details
-
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
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 nameNullPointerException- 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 aBabelSenseSourceand itsLanguage- Parameters:
source- the sense sourcelanguage- the sense language- Returns:
- the lemma type
-
fromBabelSenseSource
Gets the lemma type from aBabelSenseSourceand itsLanguage- Parameters:
source- the sense source- Returns:
- the lemma type
-