Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelTextRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelTextRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb
Overview
Request message for LabelText.
Instance Attribute Summary collapse
-
#basic_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1HumanAnnotationConfig
Configuration for how human labeling task should be done.
-
#feature ⇒ String
Required.
-
#text_classification_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationConfig
Config for text classification human labeling task.
-
#text_entity_extraction_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig
Config for text entity extraction human labeling task.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1LabelTextRequest
constructor
A new instance of GoogleCloudDatalabelingV1beta1LabelTextRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1LabelTextRequest
Returns a new instance of GoogleCloudDatalabelingV1beta1LabelTextRequest.
3299 3300 3301 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3299 def initialize(**args) update!(**args) end |
Instance Attribute Details
#basic_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1HumanAnnotationConfig
Configuration for how human labeling task should be done.
Corresponds to the JSON property basicConfig
3282 3283 3284 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3282 def basic_config @basic_config end |
#feature ⇒ String
Required. The type of text labeling task.
Corresponds to the JSON property feature
3287 3288 3289 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3287 def feature @feature end |
#text_classification_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationConfig
Config for text classification human labeling task.
Corresponds to the JSON property textClassificationConfig
3292 3293 3294 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3292 def text_classification_config @text_classification_config end |
#text_entity_extraction_config ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig
Config for text entity extraction human labeling task.
Corresponds to the JSON property textEntityExtractionConfig
3297 3298 3299 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3297 def text_entity_extraction_config @text_entity_extraction_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3304 3305 3306 3307 3308 3309 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3304 def update!(**args) @basic_config = args[:basic_config] if args.key?(:basic_config) @feature = args[:feature] if args.key?(:feature) @text_classification_config = args[:text_classification_config] if args.key?(:text_classification_config) @text_entity_extraction_config = args[:text_entity_extraction_config] if args.key?(:text_entity_extraction_config) end |