Reference documentation and code samples for the Cloud Natural Language V1beta2 Client class ClassificationCategory.
Represents a category returned from the text classifier.
Generated from protobuf message google.cloud.language.v1beta2.ClassificationCategory
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
↳ confidence
float
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
getName
The name of the category representing the document, from the predefined taxonomy .
string
setName
The name of the category representing the document, from the predefined taxonomy .
var
string
$this
getConfidence
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
float
setConfidence
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
var
float
$this