Class AnalyzeSentimentResponse (2.1.0)

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

The sentiment analysis response message. .. attribute:: document_sentiment

The overall sentiment of the input document.

:type: google.cloud.language_v1.types.Sentiment

Attributes

NameDescription
language 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 Sequence[google.cloud.language_v1.types.Sentence]
The sentiment for all the sentences in the document.