Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SentimentConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb

Overview

Config for setting up sentiments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1SentimentConfig

Returns a new instance of GoogleCloudDatalabelingV1beta1SentimentConfig.



4211
4212
4213
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_label_sentiment_selectionBoolean Also known as: enable_label_sentiment_selection?

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. Corresponds to the JSON property enableLabelSentimentSelection

Returns:

  • (Boolean)


4208
4209
4210
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4208

def enable_label_sentiment_selection
  @enable_label_sentiment_selection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4216
4217
4218
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4216

def update!(**args)
  @enable_label_sentiment_selection = args[:enable_label_sentiment_selection] if args.key?(:enable_label_sentiment_selection)
end