grafeno.transformers.prepositions module

class grafeno.transformers.prepositions.Transformer(graph=None, lang='en', **kwds)

Bases: grafeno.transformers.base.Transformer

Processes prepositions, trying to turn them into COMP edges with the preposition lemma as the class grammateme.

These edges join the prepositional phrase nucleus (direct dependent of the preposition, head) with the parent (direct dominating node of the preposition).

Methods

post_process()
transform_dep(dep, parent, child)
transform_node(msnode)