Cloud Natural Language V1beta2 Client - Class ClassificationCategory (0.29.0)

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.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

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.

getName

The name of the category representing the document, from the predefined taxonomy .

Returns
Type
Description
string

setName

The name of the category representing the document, from the predefined taxonomy .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getConfidence

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

Returns
Type
Description
float

setConfidence

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

Parameter
Name
Description
var
float
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: