udapi.block.util.split module¶
util.Split is a special block for splitting documents.
- class udapi.block.util.split.Split(parts=None, bundles_per_doc=None, **kwargs)[source]¶
Bases:
BaseReader
Split Udapi document (with sentence-aligned trees in bundles) into several parts.
- static is_multizone_reader()[source]¶
Can this reader read bundles which contain more zones?.
This implementation returns always True. If a subclass supports just one zone in file (e.g. read.Sentences), this method should be overriden to return False, so process_document can take advatage of this knowledge and optimize the reading (no buffer needed even if bundles_per_doc specified).