Class ClassificationCategory (2.1.0)

ClassificationCategory(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a category returned from the text classifier. .. attribute:: name

The name of the category representing the document, from the predefined taxonomy <https://cloud.google.com/natural-language/docs/categories>__.

:type: str

Attribute

NameDescription
confidence float
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.