Package it.uniroma1.lcl.babelnet.data
Enum BabelLemmaType
- java.lang.Object
-
- java.lang.Enum<BabelLemmaType>
-
- it.uniroma1.lcl.babelnet.data.BabelLemmaType
-
- All Implemented Interfaces:
LemmaType
,Serializable
,Comparable<BabelLemmaType>
public enum BabelLemmaType extends Enum<BabelLemmaType> implements LemmaType
Types of lemmas in BabelNet.- Author:
- navigli
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATIC_TRANSLATION
Lemmas resulting from automatic translations (suggested use only for automatic text processing).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.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BabelLemmaType
fromBabelSenseSource(BabelSenseSource source)
Gets the lemma type from aBabelSenseSource
and itsLanguage
static BabelLemmaType
fromBabelSenseSource(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
Deprecated.static BabelLemmaType
valueOf(String name)
Returns 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 Detail
-
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 Detail
-
values
public static BabelLemmaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BabelLemmaType c : BabelLemmaType.values()) System.out.println(c);
- 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 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 aBabelSenseSource
and itsLanguage
- Parameters:
source
- the sense sourcelanguage
- the sense language- Returns:
- the lemma type
-
fromBabelSenseSource
public static BabelLemmaType fromBabelSenseSource(BabelSenseSource source)
Gets the lemma type from aBabelSenseSource
and itsLanguage
- Parameters:
source
- the sense source- Returns:
- the lemma type
-
-