Skip to content

DetectSentimentRequest

Source code in docs_src/capo_comprehend/types/detect_sentiment_request.py
class DetectSentimentRequest(TypedDict, closed=True):
    text: "capo_comprehend.types.customer_input_string.CustomerInputString"
    """<p>A UTF-8 text string. The maximum string size is 5 KB.</p>"""
    language_code: "capo_comprehend.types.language_code.LanguageCode"
    """<p>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.</p>"""

language_code instance-attribute

language_code: LanguageCode

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.

text instance-attribute

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