udapi.block.corefud.stats module

class udapi.block.corefud.stats.Stats(m_len_max=5, e_len_max=5, report_mentions=True, report_entities=True, report_details=True, selected_upos='NOUN PRON PROPN DET ADJ VERB ADV NUM', exclude_singletons=False, exclude_nonsingletons=False, style='human', per_doc=False, max_rows_per_page=50, **kwargs)[source]

Bases: Block

Block corefud.Stats prints various coreference-related statistics.

after_process_document(doc)[source]

This method is called after each process_document.

print_header()[source]
process_document(doc)[source]

Process a UD document

process_end(skip=True, doc=None)[source]

A hook method that is executed after processing all UD data