Google Cloud Datalabeling V1beta1 Client - Class SentimentConfig (0.1.14)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this