# Sentence

- [JSON representation](https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/Sentence#SCHEMA_REPRESENTATION)

Represents a sentence in the input document.

| JSON representation |
|---|
| ``` { "text": { object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/TextSpan`) }, "sentiment": { object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/Sentiment`) } } ``` |

| Fields ||
|---|---|
| `text` | ``object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/TextSpan`)`` The sentence text. |
| `sentiment` | ``object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/Sentiment`)`` For calls to \[AnalyzeSentiment\]\[\] or if `https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/documents/annotateText#Features.FIELDS.extract_document_sentiment` is set to true, this field will contain the sentiment for the sentence. |