nlp_annotate: Annotate some text

View source: R/annotate.R

nlp_annotateR Documentation

Annotate some text

Description

Use SparkNLP to annotate some text.

Usage

nlp_annotate(x, target, column = NULL)

Arguments

x

some SparkNLP object that has an annotate method that takes a Spark data frame as argument

target

the text to annotate. This can be a character string, a character vector or a data frame (with the text in a field named "text")

column

the column name containing text if a Spark DataFrame is passed in.

Value

If given a character vector the return value is a list of lists containing the annotations.

If given a Spark DataFrame the return value is a Spark data frame containing the annotations


r-spark/sparknlp documentation built on Oct. 15, 2022, 10:50 a.m.