class documentation

class BabelExample:

View In Hierarchy

An example sentence in BabelNet.

Method __init__ init method
Instance Variable example The example itself.
Instance Variable language The language of the example.
Instance Variable source The region of BabelNet from which this example comes from.
Instance Variable source_sense The WordNet or Wikipedia sense from which the sense is taken.
Instance Variable tokens_word_example A set of BabelTokenWords. Each BabelTokenWord corresponds to the lemma that appears in this Babel example and for which it is an usage example.
Property license The license for this Babel example.
Method __repr__ Undocumented
Method __str__ Undocumented
def __init__(self, source, source_sense, language, example, tokens=None):

init method

Parameters
source:BabelSenseSourceThe example source.
source_sense:strThe sense of the example.
language:LanguageThe language the example is written in.
example:strthe example.
tokens:Optional[Set[BabelTokenWord]]The tokens that belong to the example (default None).
example: str =

The example itself.

language: Language =

The language of the example.

source: BabelSenseSource =

The region of BabelNet from which this example comes from.

source_sense: str =

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

tokens_word_example: Set[BabelTokenWord] =

A set of BabelTokenWords. Each BabelTokenWord corresponds to the lemma that appears in this Babel example and for which it is an usage example.

@property
license: BabelLicense =

The license for this Babel example.

def __repr__(self):

Undocumented

def __str__(self):

Undocumented