Learn R Programming

cleanNLP (version 2.3.0)

cnlp_quick: Quickly Compute Data Frame of Annotations

Description

Runs the clean_nlp annotators over a given corpus of text and returns a data frame of annotated text with one token per line. By default it will initalize the udpipe backend if no annotators are found.

Usage

cnlp_quick(input, ...)

Arguments

input

either a vector of file names to parse, a character vector with one document in each element, or a data frame. If a data frame, specify what column names contain the text and (optionally) document ids

...

additional options passed to cnlp_annotate

Value

a data frame of annotations with one row per token

Examples

Run this code
# NOT RUN {
annotation <- cnlp_quick(c("Parse this text.", "This too, as a new doc."))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab