grafeno.transformers.adjectives module

class grafeno.transformers.adjectives.Transformer(attach_adjectives=False, attached_adjective_hyper=True, keep_attached_adj=False, **kwds)

Bases: grafeno.transformers.pos_extract.Transformer, grafeno.transformers.__utils.Transformer

Processes adjectives. Adds an ATTR functor relation to the head noun.

Parameters:

attach_adjectives : bool

Attaches the adjectival concept to the head noun concept. Useful to distinguish nominal nodes when specified by modifiers.

attached_adjective_hyper : bool

If both attach_adjectives and attached_adjective_hyper are true, an hypernym node is added to the head with the original nominal concept.

keep_attached_adj : bool

If attach_adjectives is True and keep_attached_adj is False, adjectival nodes are dropped after being attached.

Methods

transform_dep(dep, parent, child)