class documentation
class ResourceID(ABC):
Known subclasses: babelnet.resources.FrameNetID
, babelnet.resources.GeoNamesID
, babelnet.resources.MSTermID
, babelnet.resources.OmegaWikiID
, babelnet.resources.ResourceWithLemmaID
, babelnet.resources.SynsetID
, babelnet.resources.VerbNetID
, babelnet.resources.WikidataID
, babelnet.resources.WiktionaryID
A basic resource identifier.
Method | __init__ |
init method |
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 | pos |
POS 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 |
overridden in
babelnet.resources.FrameNetID
, babelnet.resources.GeoNamesID
, babelnet.resources.MSTermID
, babelnet.resources.OmegaWikiID
, babelnet.resources.ResourceWithLemmaID
, babelnet.resources.SynsetID
, babelnet.resources.VerbNetID
, babelnet.resources.WikidataID
, babelnet.resources.WiktionaryID
init method
Parameters | |
idstr | ID of the resource. |
source:BabelSenseSource | Source of the resource. |
Convert the ID to a collection of BabelSynsets.
Parameters | |
languages:Optional[ | The languages to populate the synsets with (default is None). |
Returns | |
List[ BabelSynset ] | The corresponding synsets (in most cases, it will be just a single synset). |