grafeno.transformers.extend module¶
-
class
grafeno.transformers.extend.
Transformer
(extend_min_depth=4, **kwds)¶ Bases:
grafeno.transformers.wordnet.Transformer
,grafeno.transformers.__utils.Transformer
Adds to the graph all WordNet hypernyms of every possible concept node.
The hypernyms are added as nodes with grammateme ``hyper = True’‘, and related by edges with functor ``HYP’‘.
Parameters: extend_min_depth : int
Minimum depth of hypernyms to add. This depth is defined as the shortest path from the synset to the root of the WordNet hypernym hierarchy.
Methods
-
post_process
()¶
-