class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationConfig

Config for text classification human labeling task.

Attributes

allow_multi_label[RW]

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment. Corresponds to the JSON property `allowMultiLabel` @return [Boolean]

allow_multi_label?[RW]

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment. Corresponds to the JSON property `allowMultiLabel` @return [Boolean]

annotation_spec_set[RW]

Required. Annotation spec set resource name. Corresponds to the JSON property `annotationSpecSet` @return [String]

sentiment_config[RW]

Config for setting up sentiments. Corresponds to the JSON property `sentimentConfig` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SentimentConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 4289
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 4294
def update!(**args)
  @allow_multi_label = args[:allow_multi_label] if args.key?(:allow_multi_label)
  @annotation_spec_set = args[:annotation_spec_set] if args.key?(:annotation_spec_set)
  @sentiment_config = args[:sentiment_config] if args.key?(:sentiment_config)
end