udapi.block.udpipe.base module

Block udpipe.Base for tagging and parsing using UDPipe.

class udapi.block.udpipe.base.Base(model=None, model_alias=None, online=False, tokenize=True, tag=True, parse=True, resegment=False, ranges=False, delete_nodes=False, **kwargs)[source]

Bases: Block

Base class for all UDPipe blocks.

process_document(doc)[source]

Process a UD document

property tool

Return the tool (UDPipe in this case), created lazily.