View source: R/comprehend_operations.R
comprehend_detect_sentiment | R Documentation |
Inspects text and returns an inference of the prevailing sentiment (POSITIVE
, NEUTRAL
, MIXED
, or NEGATIVE
).
See https://paws-r.github.io/docs/comprehend/detect_sentiment.html for full documentation.
comprehend_detect_sentiment(Text, LanguageCode)
Text |
[required] A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters. |
LanguageCode |
[required] The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.