udapi.block.write.sentenceshtml module

SentencesHtml class is a writer for sentences in HTML list (could be Google-translated, remembering sentence correspondence).

class udapi.block.write.sentenceshtml.SentencesHtml(title='Sentences from CoNLL-U', if_missing='detokenize', **kwargs)[source]

Bases: BaseWriter

A writer of sentences in HTML list (one per item).

Usage: udapy write.SentencesHtml if_missing=empty < my.conllu > my.html

after_process_document(document)[source]

This method is called after each process_document.

before_process_document(document)[source]

This method is called before each process_document.

process_tree(tree)[source]

Process a UD tree