nlp_spark_annotation: Create a Spark NLP Annotation object inside of Spark

View source: R/annotation.R

nlp_spark_annotationR Documentation

Create a Spark NLP Annotation object inside of Spark

Description

This S3 generic is used for a Spark NLP Annotation object that exists inside of a Spark session.

Usage

nlp_spark_annotation(
  sc,
  annotatorType,
  begin,
  end,
  result,
  metadata,
  embeddings = NULL
)

Arguments

sc

A spark_connection

annotatorType

the type of annotation (string)

begin

the index of the first character under this annotation (integer)

end

the index after the last character under this annotation (integer)

result

the main output of the annotation (string)

metadata

associated metadata for this annotation (named list)

embeddings

vector of embeddings (Array(Float)). Currently unimplemented.

Value

the Spark NLP Annotation object

See Also

https://nlp.johnsnowlabs.com/docs/en/concepts#annotation


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