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, 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', **kwargs)[source]

Bases: Conllu

A 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.

parse_node_line(line, root, nodes)[source]
read_tree_from_lines(lines)[source]