Class AnalyzeSentimentResponse (2.17.2)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
AnalyzeSentimentResponse ( mapping = None , * , ignore_unknown_fields = False , ** kwargs )
The sentiment analysis response message.
Attributes
Name
Description
document_sentiment
google.cloud.language_v2.types.Sentiment
The overall sentiment of the input document.
language_code
str
The language of the text, which will be the same as the
language specified in the request or, if not specified, the
automatically-detected language. See [Document.language][]
field for more details.
sentences
MutableSequence[google.cloud.language_v2.types.Sentence ]
The sentiment for all the sentences in the
document.
language_supported
bool
Whether the language is officially supported.
The API may still return a response when the
language is not supported, but it is on a best
effort basis.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class AnalyzeSentimentResponse (2.17.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.2 (latest)](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.17.0](/python/docs/reference/language/2.17.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.16.0](/python/docs/reference/language/2.16.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.15.1](/python/docs/reference/language/2.15.1/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.14.0](/python/docs/reference/language/2.14.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.13.4](/python/docs/reference/language/2.13.4/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.12.0](/python/docs/reference/language/2.12.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.11.0](/python/docs/reference/language/2.11.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.10.1](/python/docs/reference/language/2.10.1/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.9.1](/python/docs/reference/language/2.9.1/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.8.1](/python/docs/reference/language/2.8.1/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.7.0](/python/docs/reference/language/2.7.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.6.1](/python/docs/reference/language/2.6.1/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.5.2](/python/docs/reference/language/2.5.2/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.4.3](/python/docs/reference/language/2.4.3/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.3.2](/python/docs/reference/language/2.3.2/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.2.2](/python/docs/reference/language/2.2.2/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.1.0](/python/docs/reference/language/2.1.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [2.0.0](/python/docs/reference/language/2.0.0/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n- [1.3.2](/python/docs/reference/language/1.3.2/google.cloud.language_v2.types.AnalyzeSentimentResponse) \n\n AnalyzeSentimentResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe sentiment analysis response message."]]