udapi.block.read.conll2012 module¶
“Conll2012 is a reader block for the coreference in CoNLL-2012 format.
This implementation was tested on the LitBank files only (and quickly on Portuguese Corref-PT and Summ-it++v2), so far. LitBank does not use most of the columns, so the implementation should be improved to handle other types of CoNLL-2012 files.
- class udapi.block.read.conll2012.Conll2012(attributes='docname,_,ord,form,_,_,_,_,_,_,_,_,coref', emptyval='_', **kwargs)[source]¶
Bases:
ConlluA reader of the Conll2012 files.
- parse_comment_line(line, root)[source]¶
Parse one line of CoNLL-U and fill sent_id, text, newpar, newdoc in root.