class documentation
class _OnlineBabelSynset(BabelSynset):
Online implementation of a BabelSynset.
Method | __init__ |
init method |
Instance Variable | synset |
The id of the synset. |
Instance Variable | target |
The language filter. |
Property | images |
The images (BabelImages) of this BabelSynset. |
Property | synset |
The synset degree associated with this synset. |
Property | translations |
All translations between senses found in this BabelSynset. |
Method | _get |
Get the examples of the synset |
Method | _get |
Get the glosses of the synset |
Method | _load |
load method |
Instance Variable | __dict__ |
Undocumented |
Instance Variable | _is |
Undocumented |
Inherited from BabelSynset
:
Method | categories |
Get the categories (BabelCategory) of this BabelSynset in the specified languages (if not specified, return all categories). |
Method | examples |
Collect all Examples for this Synset. |
Method | get |
The tags of this synset as string |
Method | glosses |
Collect all Glosses for this Synset. |
Method | lemmas |
Return the lemmas in this BabelSynset sorted by relevance and type. |
Method | main |
Get the main Example for this Synset. |
Method | main |
Get the main Gloss in the given language, if any. |
Method | main |
Get the main BabelSense by importance of this BabelSynset. |
Method | main |
Get the main BabelSense by importance of this BabelSynset, preferrably in the given language. |
Method | main |
Collect distinct BabelSenses sorted by importance to this BabelSynset for a given language. |
Method | outgoing |
Collect all Synset edges incident on this Synset. |
Method | retain |
Retain all the senses which pass the predicate tests. |
Method | senses |
Get the senses contained in this Synset. |
Method | senses |
Gets the Senses for the input word in the given language. |
Method | to |
Return the string representation of the BabelSenses of this BabelSynset only for a specific set of languages. |
Method | to |
Return the URIs of the various senses in the given languages in the synset for a given ExternalResource. |
Method | wordnet |
Obtain a map from WordNetSynsetID of the input WordNetVersion to the current version of WordNet (3.0 as of 2016). |
Method | wordnet |
Obtain a map from the current version of WordNet (3.0 as of 2016) to WordNetSynsetIDs of the input WordNetVersion. |
Instance Variable | id |
The id of the synset. |
Property | domains |
The BabelDomains of this BabelSynset. |
Property | frame |
Return the FrameID associated with this synset. |
Property | is |
True if the synset is a key concept. |
Property | languages |
The set of languages used in this Synset. |
Property | main |
The best image (BabelImage) of this BabelSynset. |
Property | pos |
The part of speech of this Synset. |
Property | qcode |
The qcode identifier associated with this synset. |
Property | sense |
The list of sense sources contained in the synset. |
Property | tags |
The tags of this synset |
Property | type |
The kind of synset. |
Property | wordnet |
The WordNet offsets (version 3.0) whose corresponding synsets this BabelSynset covers, if any. |
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | _valid |
The synset degree associated with this synset, or the number of outgoing edges if the synset degree is not available. |
Instance Variable | _contained |
true if contains the sense source |
Instance Variable | _domains |
the domains |
Instance Variable | _edges |
the edges |
Instance Variable | _examples |
the examples |
Instance Variable | _frame |
the frame id |
Instance Variable | _glosses |
the glosses |
Instance Variable | _images |
the images |
Instance Variable | _key |
teh key concept |
Instance Variable | _main |
the main image |
Instance Variable | _main |
the main sense |
Instance Variable | _qcode |
the qcode ids |
Instance Variable | _senses |
the senses |
Instance Variable | _synset |
the synset degree |
Instance Variable | _tags |
the tags |
Instance Variable | _target |
target_langs |
Instance Variable | _translations |
the translations |
Instance Variable | _type |
the type of the synset |
Instance Variable | _wn |
the wordnet offset |
def __init__(self, synset_id, target_langs):
overrides
babelnet.synset.BabelSynset.__init__
init method
Parameters | |
synsetBabelSynsetID | The id of the synset. |
targetSet[ | The language filter. |
overrides
babelnet.synset.BabelSynset.images
The images (BabelImages) of this BabelSynset.
Returns | |
List[BabelImage] | All the images of the Synset. |
overrides
babelnet.synset.BabelSynset.translations
All translations between senses found in this BabelSynset.
Returns | |
Dict[BabelSense , Set[BabelSense]] | A dict from BabelSense to his translation. |
def _get_glosses(self):
overrides
babelnet.synset.BabelSynset._get_glosses
Get the glosses of the synset