udpipe (version 0.3)

udpipe_read_conllu: Read in a CONLL-U file as a data.frame

Description

Read in a CONLL-U file as a data.frame

Usage

udpipe_read_conllu(file)

Arguments

file

a connection object or a character string with the location of the file

Value

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

Examples

Run this code
# NOT RUN {
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