public enum BabelLemmaType extends Enum<BabelLemmaType> implements LemmaType
Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
static BabelLemmaType |
fromBabelSenseSource(BabelSenseSource source,
it.uniroma1.lcl.jlt.util.Language language)
Gets the lemma type from a
BabelSenseSource and its Language |
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.
|
public static final BabelLemmaType HIGH_QUALITY
public static final BabelLemmaType POTENTIAL_NEAR_SYNONYM_OR_WORSE
public static final BabelLemmaType AUTOMATIC_TRANSLATION
public static BabelLemmaType[] values()
for (BabelLemmaType c : BabelLemmaType.values()) System.out.println(c);
public static BabelLemmaType 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 nullpublic static BabelLemmaType fromBabelSenseSource(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
BabelSenseSource
and its Language
source
- the sense sourcelanguage
- the sense languageCopyright © 2016–2018. All rights reserved.