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

View source: R/udpipe_train.R

udpipe_read_conlluR Documentation

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

file_conllu <- system.file(package = "udpipe", "dummydata", "traindata.conllu")
x <- udpipe_read_conllu(file_conllu)
head(x)

udpipe documentation built on Jan. 6, 2023, 5:06 p.m.