class documentation

class BabelGloss:

View In Hierarchy

A gloss in BabelNet.

Method __init__ init method
Instance Variable gloss The gloss string.
Instance Variable language The language of the gloss.
Instance Variable source The region of BabelNet from which this gloss comes from.
Instance Variable source_sense The WordNet or Wikipedia sense from which the sense is taken.
Instance Variable token_ids A list of BabelTokenIds. Each BabelTokenId is the association between the lemma that appears in this Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.
Property license The license for this Babel gloss.
Method __repr__ Undocumented
Method __str__ Undocumented
def __init__(self, source, source_sense, language, gloss, tokens=None):

init method

Parameters
source:BabelSenseSourceThe gloss source.
source_sense:intThe sense the gloss defines.
language:LanguageThe language the gloss is written in.
gloss:strThe gloss string.
tokens:Optional[Set[BabelTokenId]]The tokens that belong to the gloss (default None)
gloss: str =

The gloss string.

language: Language =

The language of the gloss.

source: BabelSenseSource =

The region of BabelNet from which this gloss comes from.

source_sense: int =

The WordNet or Wikipedia sense from which the sense is taken.

token_ids: Set[BabelTokenId] =

A list of BabelTokenIds. Each BabelTokenId is the association between the lemma that appears in this Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.

@property
license: BabelLicense =

The license for this Babel gloss.

def __repr__(self):

Undocumented

def __str__(self):

Undocumented