grafeno.transformers.all module¶
-
class
grafeno.transformers.all.
Transformer
(graph=None, lang='en', **kwds)¶ Bases:
grafeno.transformers.base.Transformer
This transformer carries over all morphological nodes and syntactic dependencies to the semantic level. It is good for developing/debugging purposes, since it directly translates the dependency tree into the semantic graph.
Methods
-
transform_dep
(dependency, parent, child)¶ The functor is the dependency name.
-
transform_node
(msnode)¶ The concept is the lemma of the morphological node.
-