class documentation
class BabelGloss:
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 |
The WordNet or Wikipedia sense from which the sense is taken. |
| Instance Variable | token |
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 |
init method
| Parameters | |
source:BabelSenseSource | The gloss source. |
sourceint | The sense the gloss defines. |
language:Language | The language the gloss is written in. |
gloss:str | The gloss string. |
tokens:Optional[Set[BabelTokenId]] | The tokens that belong to the gloss (default None) |
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.