Google Cloud Datalabeling V1beta1 Client - Class TextClassificationConfig (0.5.4)

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
bool

setAllowMultiLabel

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

Parameter
Name Description
var bool
Returns
Type Description
$this

getAnnotationSpecSet

Required. Annotation spec set resource name.

Returns
Type Description
string

setAnnotationSpecSet

Required. Annotation spec set resource name.

Parameter
Name Description
var string
Returns
Type Description
$this

getSentimentConfig

Optional. Configs for sentiment selection.

Returns
Type Description
Google\Cloud\DataLabeling\V1beta1\SentimentConfig|null

hasSentimentConfig

clearSentimentConfig

setSentimentConfig

Optional. Configs for sentiment selection.

Parameter
Name Description
var Google\Cloud\DataLabeling\V1beta1\SentimentConfig
Returns
Type Description
$this