grafeno.transformers.lenient module

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

Bases: grafeno.transformers.base.Transformer

Removes edges where parent or child node don’t have a concept.

This might necessary because otherwise these edges would give an error when trying to be added to the graph. Ideally, this situation should never happen, but sometimes nodes get dropped after the edges have already been processed.

Methods

post_process()