corenlp_parse_conll: Parse the CoNLL output of CoreNLP.

Description Usage Arguments Details Value

View source: R/output.R

Description

Read CoNLL output from a file and return a data.table with the annotation data.

Usage

1
corenlp_parse_conll(x, progress = TRUE)

Arguments

x

A filename, or a character vector of filenames. If x is a list (of character vectors of filenames), it will be unlisted to yield a character vector.

progress

logical

Details

corenlp_parse_conll uses data.table::fread() and supplies settings that prevent undesired behaviour. The resulting data.table will have the columns "idx", "word", "lemma", "pos", "ner", "headidx", "deprel", see the documentation of the CoNLLOutputter class.

Value

A data.frame with 8 columns:

Note that Column 1 is generated by bignlp, columns 2-8 map the CoNLL output of CoreNLP; the description of the columns is taken from the documentation of the CoNLLOutputter class


PolMine/bignlp documentation built on Jan. 29, 2021, 1:14 a.m.