π<Node> Object Doc.
1. Attributes
def __init__(self, lang: str, type_: str, name: str, lemma: str,
synset0: list = None, synset1: list = None, synset2: list = None,
semset0: list = None, semset1: list = None, semset2: list = None,
favorite: bool = False,
examples: list = None) -> None:
self.graph = None
# 1. Hash
self.lang, self.type, self.name = lang, type_, name # str
self.lemma = lemma if lemma is not None else "NA" # str ("NA" by default)
# 2. Connections
self.synset0 = synset0 if synset0 else [] # list
self.synset1 = synset1 if synset1 else [] # list
self.synset2 = synset2 if synset2 else [] # list
self.semset0 = semset0 if semset0 else [] # list
self.semset1 = semset1 if semset1 else [] # list
self.semset2 = semset2 if semset2 else [] # list
# 3. Additional
self.favorite = favorite == True # bool (False by default)
self.examples = examples if examples is not None else [] # list2. Retrieving Neighbors
2.1. The 'get_neighbors' method
2.2. Equivalent functions
3. Editing Properties
4. Other functions
5. __repr__
Last updated