Learn R Programming

aws.comprehend (version 0.2.1)

detect_entities: Detect named entities in a source text

Description

Detect entities in a source text

Usage

detect_entities(text, language = "en", ...)

Arguments

text

A character string containing a text to entities analyze, or a character vector to perform analysis separately for each element.

language

A character string containing a two-letter language code. Currently “en” and “es” are supported.

Additional arguments passed to comprehendHTTP.

Value

A data frame

Examples

Run this code
# NOT RUN {
  # simple example
  detect_entities("Amazon provides web services. Jeff is their leader.")
  
  txt <-c("Amazon provides web services, like Google.",
          "Jeff is their leader.")
  detect_entities(txt)
# }

Run the code above in your browser using DataLab