udapi.block.write.textmodetreeshtml module¶
An ASCII pretty printer of colored dependency trees in HTML.
- class udapi.block.write.textmodetreeshtml.TextModeTreesHtml(color=True, title='Udapi visualization', zones_in_rows=True, **kwargs)[source]¶
Bases:
TextModeTrees
An ASCII pretty printer of colored dependency trees in HTML.
SYNOPSIS # from command line (visualize CoNLL-U files) udapy write.TextModeTreesHtml < file.conllu > file.html
This block is a subclass of TextModeTrees, see its documentation for more info.
- before_process_document(document)[source]¶
Initialize ANSI colors if color is True or ‘auto’.
If color==’auto’, detect if sys.stdout is interactive (terminal, not redirected to a file).