Sentence

Represents a sentence in the input document.

JSON representation
{
  "text": {
    object(TextSpan)
  },
  "sentiment": {
    object(Sentiment)
  },
}
Fields
text

object(TextSpan)

The sentence text.

sentiment

object(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.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Google Cloud Natural Language API