udapi.block.corefud.printmentions module

class udapi.block.corefud.printmentions.PrintMentions(continuous='include', almost_continuous='include', treelet='include', forest='include', almost_forest='include', oneword='include', singleton='include', empty='include', max_trees=0, html=False, shuffle=True, print_other_forms=5, print_total=True, print_should=True, print_sent_id=True, print_text=True, add_empty_line=True, indent=1, minimize_cross=True, color=True, attributes='ord,form,upos,deprel,misc', print_undef_as='_', print_doc_meta=True, print_comments=False, mark='(Mark)', hints=True, layout='classic', **kwargs)[source]

Bases: Block

Print mentions with various properties.

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_document(doc)[source]

Process a UD document