Google Cloud Datalabeling V1beta1 Client - Class SentimentConfig (0.5.4)

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

Config for setting up sentiments.

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable_label_sentiment_selection bool

If set to true, contributors will have the option to select sentiment of the label they selected, to mark it as negative or positive label. Default is false.

getEnableLabelSentimentSelection

If set to true, contributors will have the option to select sentiment of the label they selected, to mark it as negative or positive label. Default is false.

Returns
Type Description
bool

setEnableLabelSentimentSelection

If set to true, contributors will have the option to select sentiment of the label they selected, to mark it as negative or positive label. Default is false.

Parameter
Name Description
var bool
Returns
Type Description
$this