udapi.block.read.vislcg module

Vislcg is a reader block the VISL-cg format.

class udapi.block.read.vislcg.Vislcg(files='-', filehandle=None, zone='keep', bundles_per_doc=0, encoding='utf-8-sig', sent_id_filter=None, split_docs=False, ignore_sent_id=False, merge=False, max_docs=0, **kwargs)[source]

Bases: BaseReader

A reader of the VISL-cg format, suitable for VISL Constraint Grammer Parser.

read_tree()[source]

Load one (more) tree from self.filehandle and return its root.

This method must be overriden in all readers. Usually it is the only method that needs to be implemented. The implementation in this base clases raises NotImplementedError.