nlp_annotation: Spark NLP S3 Annotation object

View source: R/annotation.R

nlp_annotationR Documentation

Spark NLP S3 Annotation object

Description

A Spark NLP annotation S3 object has the following fields:

  • 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)

  • metadata: associated metadata for this annotation (Map(String, String))

  • result: the main output of the annotation (String)

  • embeddings: vector of embeddings (Array(Float))

Usage

nlp_annotation(x)

Arguments

x

a spark_jobj that is an Annotation object or a named list

Details

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

Value

a local nlp_annotation object


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