Google Cloud Datalabeling V1beta1 Client - Class TextClassificationConfig (0.1.14)

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

Config for text classification human labeling task.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allow_multi_label bool

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.

↳ annotation_spec_set string

Required. Annotation spec set resource name.

↳ sentiment_config Google\Cloud\DataLabeling\V1beta1\SentimentConfig

Optional. Configs for sentiment selection.

getAllowMultiLabel

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.

Returns
TypeDescription
bool

setAllowMultiLabel

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAnnotationSpecSet

Required. Annotation spec set resource name.

Returns
TypeDescription
string

setAnnotationSpecSet

Required. Annotation spec set resource name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSentimentConfig

Optional. Configs for sentiment selection.

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

hasSentimentConfig

clearSentimentConfig

setSentimentConfig

Optional. Configs for sentiment selection.

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