class documentation

A resource identifier with the specified BabelSynset ID. To obtain the corresponding synset, call to_synset().

Method __init__ init method Examples of BabelSynsetID:
Method to_synset From a lightweight BabelSynsetID, create the corresponding BabelSynset.
Property is_valid True if the SynsetID is valid, False otherwise
Property outgoing_edges The edges (BabelSynsetRelations) which connect the current synset.
Constant _BABELNET_ID_LENGTH The BabelNet ID prefix (int).
Constant _BABELNET_ID_PREFIX The BabelNet ID prefix (str).
Constant _WORDATLAS_ID_LENGTH The WordAtlas ID length e.g: wa:tqlms5n
Constant _WORDATLAS_ID_PREFIX The WordAtlas ID prefix (str).

Inherited from SynsetID:

Instance Variable pos the POS
Property simple_offset The offset without prefix (e.g. `wn:` or `bn:`).

Inherited from ResourceID (via SynsetID):

Method to_synsets Convert the ID to a collection of BabelSynsets.
Instance Variable id ID of a ResourceID.
Instance Variable language Language of the resource ID, if available.
Instance Variable source Source of the resource ID.
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __lt__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
def __init__(self, id_str):

init method Examples of BabelSynsetID:

    rid = BabelSynsetID('bn:03083790n')
Parameters
id_str:strID of the resource.
Raises
InvalidSynsetIDErrorRaise if the ID is invalid.
def to_synset(self):

From a lightweight BabelSynsetID, create the corresponding BabelSynset.

Returns
BabelSynsetThe BabelSynset corresponding to this ID.
@property
is_valid: bool =

True if the SynsetID is valid, False otherwise

Returns
boolTrue or False
@property
outgoing_edges: List[BabelSynsetRelation] =

The edges (BabelSynsetRelations) which connect the current synset.

_BABELNET_ID_LENGTH: int =

The BabelNet ID prefix (int).

Value
12
_BABELNET_ID_PREFIX: str =

The BabelNet ID prefix (str).

Value
'bn:'
_WORDATLAS_ID_LENGTH: int =

The WordAtlas ID length e.g: wa:tqlms5n

Value
10
_WORDATLAS_ID_PREFIX: str =

The WordAtlas ID prefix (str).

Value
'wa:'