ClassificationCategory

Represents a category returned from the text classifier.

JSON representation
{
  "name": string,
  "confidence": number,
  "severity": 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.

severity

number

Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.