# ClassificationCategory

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

Represents a category returned from the text classifier.

| JSON representation |
|---|
| ``` { "name": string, "confidence": number } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the category representing the document. |
| `confidence` | `number` The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text. |