udapi.block.write.conllu module

Conllu class is a a writer of files in the CoNLL-U format.

class udapi.block.write.conllu.Conllu(print_sent_id=True, print_text=True, print_empty_trees=True, **kwargs)[source]

Bases: BaseWriter

A writer of files in the CoNLL-U format.

before_process_document(document)[source]

Print doc_json_* headers.

process_tree(tree)[source]

Process a UD tree