class documentation

class BabelSynsetRelation:

View In Hierarchy

Class that models a relation to a synset ID in the BabelNet network.

Static Method from_string Create a new instance of BabelSynsetRelation from an input record in the same format as found in BabelNetIndexField.
Method __init__ init method
Instance Variable language The language of the relation.
Instance Variable pointer The relation type.
Instance Variable target The target offset.
Property id_target Get the target as a BabelSynsetID.
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
@staticmethod
def from_string(edge):

Create a new instance of BabelSynsetRelation from an input record in the same format as found in BabelNetIndexField.

Parameters
edge:strThe String representation of the edge.
Returns
BabelSynsetRelationRelation instance.
Raises
RuntimeErrorif the relation is invalid
def __init__(self, language, pointer, target):

init method

Parameters
language:LanguageThe language of the relation.
pointer:BabelPointerThe relation type.
target:strThe target offset.
language: Language =

The language of the relation.

pointer: BabelPointer =

The relation type.

target: str =

The target offset.

@property
id_target: BabelSynsetID =

Get the target as a BabelSynsetID.

def __eq__(self, other):

Undocumented

def __hash__(self):

Undocumented

def __repr__(self):

Undocumented

def __str__(self):

Undocumented