Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationConfig
- 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 text classification human labeling task.
Instance Attribute Summary collapse
-
#allow_multi_label ⇒ Boolean
(also: #allow_multi_label?)
Optional.
-
#annotation_spec_set ⇒ String
Required.
-
#sentiment_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SentimentConfig
Config for setting up sentiments.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextClassificationConfig
constructor
A new instance of GoogleCloudDatalabelingV1beta1TextClassificationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextClassificationConfig
Returns a new instance of GoogleCloudDatalabelingV1beta1TextClassificationConfig.
4289 4290 4291 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4289 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_multi_label ⇒ Boolean Also known as: allow_multi_label?
Optional. If allow_multi_label is true, contributors are able to choose
multiple labels for one text segment.
Corresponds to the JSON property allowMultiLabel
4276 4277 4278 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4276 def allow_multi_label @allow_multi_label end |
#annotation_spec_set ⇒ String
Required. Annotation spec set resource name.
Corresponds to the JSON property annotationSpecSet
4282 4283 4284 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4282 def annotation_spec_set @annotation_spec_set end |
#sentiment_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SentimentConfig
Config for setting up sentiments.
Corresponds to the JSON property sentimentConfig
4287 4288 4289 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4287 def sentiment_config @sentiment_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4294 4295 4296 4297 4298 |
# 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 |