Class Sentence (2.1.0)

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

Represents a sentence in the input document. .. attribute:: text

The sentence text.

:type: google.cloud.language_v1beta2.types.TextSpan

Attribute

NameDescription
sentiment google.cloud.language_v1beta2.types.Sentiment
For calls to [AnalyzeSentiment][] or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.