Class Sentence (2.0.0)

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

Represents a sentence in the input document.

Attributes

NameDescription
text .language_service.TextSpan
The sentence text.
sentiment .language_service.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.