Learn R Programming

aws.comprehend (version 0.2.1)

detect_syntax: 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

Run this code
# 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)
# }

Run the code above in your browser using DataLab