Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
- 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
Text classification annotation.
Instance Attribute Summary collapse
-
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used in a labeling task.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
constructor
A new instance of GoogleCloudDatalabelingV1beta1TextClassificationAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
Returns a new instance of GoogleCloudDatalabelingV1beta1TextClassificationAnnotation.
4258 4259 4260 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4258 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used
in a labeling task. For example, an image classification task where images are
labeled as dog
or cat
must reference an AnnotationSpec for dog
and an
AnnotationSpec for cat
.
Corresponds to the JSON property annotationSpec
4256 4257 4258 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4256 def annotation_spec @annotation_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4263 4264 4265 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4263 def update!(**args) @annotation_spec = args[:annotation_spec] if args.key?(:annotation_spec) end |