View Source GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1Annotation (google_api_data_labeling v0.3.1)

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

  • annotationMetadata (type: GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1AnnotationMetadata.t, default: nil) - Output only. Annotation metadata, including information like votes for labels.
  • annotationSentiment (type: String.t, default: nil) - Output only. Sentiment for this annotation.
  • annotationSource (type: String.t, default: nil) - Output only. The source of the annotation.
  • annotationValue (type: GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1AnnotationValue.t, default: nil) - Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
  • name (type: String.t, default: nil) - Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1Annotation{
    annotationMetadata:
      GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1AnnotationMetadata.t()
      | nil,
    annotationSentiment: String.t() | nil,
    annotationSource: String.t() | nil,
    annotationValue:
      GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1AnnotationValue.t()
      | nil,
    name: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.