detect_entities {aws.comprehend}R Documentation

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

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

## End(Not run)

[Package aws.comprehend version 0.2.1 Index]