Google Cloud Datalabeling V1beta1Annotation Spec Response
data class GoogleCloudDatalabelingV1beta1AnnotationSpecResponse(val description: String, val displayName: String, val index: Int)
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
.
Constructors
Link copied to clipboard
fun GoogleCloudDatalabelingV1beta1AnnotationSpecResponse(description: String, displayName: String, index: Int)
Types
Properties
Link copied to clipboard
Link copied to clipboard
This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes dog
and cat
, might contain one AnnotationSpec with { display_name: "dog", index: 0 }
and one AnnotationSpec with { display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.