class documentation
class SynsetID(ResourceID):
Known subclasses: babelnet.resources.BabelSynsetID
, babelnet.resources.WordNetSynsetID
A unique identifier for a Synset.
Method | __init__ |
init method |
Instance Variable | pos |
the POS |
Property | is |
True if the SynsetID is valid, False otherwise |
Property | simple |
The offset without prefix (e.g. `wn:` or `bn:`). |
Inherited from ResourceID
:
Method | to |
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, source):
overrides
babelnet.resources.ResourceID.__init__
init method
Parameters | |
idstr | Synset ID. |
source | Source |
Raises | |
InvalidSynsetIDError | Raised if the ID is invalid |