udapi.core.block module¶
Block class represents the basic Udapi processing unit.
- class udapi.core.block.Block(zones='all', if_empty_tree='process', **kwargs)[source]¶
Bases:
object
The smallest processing unit for processing Universal Dependencies data.
Parameters: zones: which zone to process (default=”all”) if_empty_tree: what to do when encountering a tree with no nodes.
Possible values are: process (default), skip, skip_warn, fail, delete.
- process_coref_entity(entity)[source]¶
This method is called on each coreference entity in the document.