Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig
- 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
Configuration for how human labeling task should be done.
Instance Attribute Summary collapse
-
#annotated_dataset_description ⇒ String
Optional.
-
#annotated_dataset_display_name ⇒ String
Required.
-
#contributor_emails ⇒ Array<String>
Optional.
-
#instruction ⇒ String
Required.
-
#label_group ⇒ String
Optional.
-
#language_code ⇒ String
Optional.
-
#question_duration ⇒ String
Optional.
-
#replica_count ⇒ Fixnum
Optional.
-
#user_email_address ⇒ String
Email of the user who started the labeling task and should be notified by email.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig
constructor
A new instance of GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig
Returns a new instance of GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig.
5589 5590 5591 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5589 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotated_dataset_description ⇒ String
Optional. A human-readable description for AnnotatedDataset. The description
can be up to 10000 characters long.
Corresponds to the JSON property annotatedDatasetDescription
5536 5537 5538 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5536 def annotated_dataset_description @annotated_dataset_description end |
#annotated_dataset_display_name ⇒ String
Required. A human-readable name for AnnotatedDataset defined by users. Maximum
of 64 characters .
Corresponds to the JSON property annotatedDatasetDisplayName
5542 5543 5544 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5542 def annotated_dataset_display_name @annotated_dataset_display_name end |
#contributor_emails ⇒ Array<String>
Optional. If you want your own labeling contributors to manage and work on
this labeling request, you can set these contributors here. We will give them
access to the question types in crowdcompute. Note that these emails must be
registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
Corresponds to the JSON property contributorEmails
5550 5551 5552 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5550 def contributor_emails @contributor_emails end |
#instruction ⇒ String
Required. Instruction resource name.
Corresponds to the JSON property instruction
5555 5556 5557 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5555 def instruction @instruction end |
#label_group ⇒ String
Optional. A human-readable label used to logically group labeling tasks. This
string must match the regular expression [a-zA-Z\\d_-]
0,128`.
Corresponds to the JSON property
labelGroup`
5561 5562 5563 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5561 def label_group @label_group end |
#language_code ⇒ String
Optional. The Language of this question, as a BCP-47. Default value is en-US. Only need to set this when
task is language related. For example, French text classification.
Corresponds to the JSON property languageCode
5568 5569 5570 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5568 def language_code @language_code end |
#question_duration ⇒ String
Optional. Maximum duration for contributors to answer a question. Maximum is
3600 seconds. Default is 3600 seconds.
Corresponds to the JSON property questionDuration
5574 5575 5576 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5574 def question_duration @question_duration end |
#replica_count ⇒ Fixnum
Optional. Replication of questions. Each question will be sent to up to this
number of contributors to label. Aggregated answers will be returned. Default
is set to 1. For image related labeling, valid values are 1, 3, 5.
Corresponds to the JSON property replicaCount
5581 5582 5583 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5581 def replica_count @replica_count end |
#user_email_address ⇒ String
Email of the user who started the labeling task and should be notified by
email. If empty no notification will be sent.
Corresponds to the JSON property userEmailAddress
5587 5588 5589 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5587 def user_email_address @user_email_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5594 def update!(**args) @annotated_dataset_description = args[:annotated_dataset_description] if args.key?(:annotated_dataset_description) @annotated_dataset_display_name = args[:annotated_dataset_display_name] if args.key?(:annotated_dataset_display_name) @contributor_emails = args[:contributor_emails] if args.key?(:contributor_emails) @instruction = args[:instruction] if args.key?(:instruction) @label_group = args[:label_group] if args.key?(:label_group) @language_code = args[:language_code] if args.key?(:language_code) @question_duration = args[:question_duration] if args.key?(:question_duration) @replica_count = args[:replica_count] if args.key?(:replica_count) @user_email_address = args[:user_email_address] if args.key?(:user_email_address) end |