comprehend_detect_syntax: Inspects text for syntax and the part of speech of words in...

Description Usage Arguments Value Request syntax

View source: R/comprehend_operations.R

Description

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

Usage

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

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

paws.machine.learning documentation built on Aug. 23, 2021, 9:14 a.m.