Detect Syntax
comprehend_detect_syntax | R Documentation |
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, see Syntax in the Comprehend Developer Guide.
Usage¶
Arguments¶
Text
[required] A UTF-8 string. The maximum string size is 5 KB.
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
)
)
)
)