Google Cloud Datalabeling V1beta1 Client - Class TextClassificationAnnotation (0.3.1)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class TextClassificationAnnotation.

Text classification annotation.

Generated from protobuf message google.cloud.datalabeling.v1beta1.TextClassificationAnnotation

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ annotation_spec Google\Cloud\DataLabeling\V1beta1\AnnotationSpec

Label of the text.

getAnnotationSpec

Label of the text.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\AnnotationSpec|null

hasAnnotationSpec

clearAnnotationSpec

setAnnotationSpec

Label of the text.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\AnnotationSpec
Returns
TypeDescription
$this