Class ClassificationCategory (2.4.2)

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

Represents a category returned from the text classifier.

Attributes

NameDescription
name str
The name of the category representing the document, from the `predefined taxonomy
confidence float
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.

Inheritance

builtins.object > proto.message.Message > ClassificationCategory