detect_syntax {aws.comprehend}R Documentation

Detect syntax in a source text

Description

Detect syntax in a source text

Usage

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

Arguments

text

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

language

A character string containing a two-letter language code.

...

Additional arguments passed to comprehendHTTP.

Value

A data frame

Examples

## Not run: 
  # simple example
  detect_syntax("The quick brown fox jumps over the lazy dog.")

  txt <-c("The quick brown fox jumps over the lazy dog.",
          "I have never been happier!")
  detect_syntax(txt)

## End(Not run)

[Package aws.comprehend version 0.2.1 Index]