class documentation

class BabelLemmaType(OrderedEnum):

View In Hierarchy

Types of lemmas in BabelNet.

Class Method from_babel_sense_source Get the lemma type from a BabelSenseSource and its Language.
Constant AUTOMATIC_TRANSLATION Lemmas resulting from automatic translations (suggested use only for automatic text processing).
Constant HIGH_QUALITY High quality lemmas, coming from professionally-curated res (such as WordNet or WordAtlas) or reliable crowdsources res.
Constant POTENTIAL_NEAR_SYNONYM_OR_WORSE Mostly Wikipedia redirections, which might be synonyms, near synonyms or related terms.
Method __repr__ Undocumented
Method __str__ Undocumented
@classmethod
def from_babel_sense_source(cls, source, language=None):

Get the lemma type from a BabelSenseSource and its Language.

Parameters
source:BabelSenseSourceThe sense source.
language:Optional[Language]The sense language.
Returns
BabelLemmaTypeThe lemma type.
AUTOMATIC_TRANSLATION: BabelLemmaType =

Lemmas resulting from automatic translations (suggested use only for automatic text processing).

Value
3
HIGH_QUALITY: BabelLemmaType =

High quality lemmas, coming from professionally-curated res (such as WordNet or WordAtlas) or reliable crowdsources res.

Value
1
POTENTIAL_NEAR_SYNONYM_OR_WORSE: BabelLemmaType =

Mostly Wikipedia redirections, which might be synonyms, near synonyms or related terms.

Value
2
def __repr__(self):

Undocumented

def __str__(self):

Undocumented