Represents a category returned from the text classifier.
JSON representation |
---|
{ "name" : string , "confidence" : number , "severity" : number } |
Fields | |
---|---|
name
|
The name of the category representing the document. |
confidence
|
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text. |
severity
|
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. |