Class AnalyzeSentimentResponse (2.12.0)

AnalyzeSentimentResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The sentiment analysis response message.

Attributes

NameDescription
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.