powered by
Read in a CONLL-U file as a data.frame
udpipe_read_conllu(file)
a data.frame with columns doc_id, paragraph_id, sentence_id, sentence, token_id, token, lemma, upos, xpos, feats, head_token_id, deprel, dep_rel, misc
a connection object or a character string with the location of the file
file_conllu <- system.file(package = "udpipe", "dummydata", "traindata.conllu") x <- udpipe_read_conllu(file_conllu) head(x)
Run the code above in your browser using DataLab