comprehend_detect_sentiment: Inspects text and returns an inference of the prevailing...

View source: R/comprehend_operations.R

comprehend_detect_sentimentR Documentation

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE)

Description

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

See https://www.paws-r-sdk.com/docs/comprehend_detect_sentiment/ for full documentation.

Usage

comprehend_detect_sentiment(Text, LanguageCode)

Arguments

Text

[required] A UTF-8 text string. The maximum string size is 5 KB.

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.


paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.