Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

comprehend_detect_syntax

Inspects text for syntax and the part of speech of words in the document


Description

Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.

Usage

comprehend_detect_syntax(Text, LanguageCode)

Arguments

Text

[required] A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.

LanguageCode

[required] The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

Value

A list with the following syntax:

list(
  SyntaxTokens = list(
    list(
      TokenId = 123,
      Text = "string",
      BeginOffset = 123,
      EndOffset = 123,
      PartOfSpeech = list(
        Tag = "ADJ"|"ADP"|"ADV"|"AUX"|"CONJ"|"CCONJ"|"DET"|"INTJ"|"NOUN"|"NUM"|"O"|"PART"|"PRON"|"PROPN"|"PUNCT"|"SCONJ"|"SYM"|"VERB",
        Score = 123.0
      )
    )
  )
)

Request syntax

svc$detect_syntax(
  Text = "string",
  LanguageCode = "en"|"es"|"fr"|"de"|"it"|"pt"
)

paws.machine.learning

Amazon Web Services Machine Learning Services

v0.1.11
Apache License (>= 2.0)
Authors
David Kretch [aut, cre], Adam Banker [aut], Amazon.com, Inc. [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.