anchorman.generator.candidate module

anchorman.generator.candidate.data_val(item, replaces_per_attribute)[source]
anchorman.generator.candidate.elements_of_unit(intervaltree, unit, setting)[source]

Get all items / elements of the actual unit to validate.

anchorman.generator.candidate.retrieve_hits(intervaltree, units, config, own_validator)[source]

Loop the units and validate each item in unit.

anchorman.generator.candidate.validate(item, candidates, this_unit, setting, own_validator)[source]

Apply the rules specified in setting to the item.

Take care of candidates already validated and the items already added to this_unit.

Todo

check context of replacement: do not add links in links, or inline of overlapping elements, ... replace only one item of an entity > e.g. A. Merkel, Mum Merkel, ...

Anchorman

turns your text into hypertext.