class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Annotation
Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation.
Attributes
Additional information associated with the annotation. Corresponds to the JSON property `annotationMetadata` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationMetadata]
Output only. Sentiment for this annotation. Corresponds to the JSON property `annotationSentiment` @return [String]
Output only. The source of the annotation. Corresponds to the JSON property `annotationSource` @return [String]
Annotation value for an example. Corresponds to the JSON property `annotationValue` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationValue]
Output only. Unique name of this annotation, format is: projects/`project_id`/ datasets/`dataset_id`/annotatedDatasets/`annotated_dataset`/examples/` example_id`/annotations/`annotation_id` Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 933 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 938 def update!(**args) @annotation_metadata = args[:annotation_metadata] if args.key?(:annotation_metadata) @annotation_sentiment = args[:annotation_sentiment] if args.key?(:annotation_sentiment) @annotation_source = args[:annotation_source] if args.key?(:annotation_source) @annotation_value = args[:annotation_value] if args.key?(:annotation_value) @name = args[:name] if args.key?(:name) end