pub struct GoogleCloudDatalabelingV1beta1AnnotationSpec {
pub description: Option<String>,
pub display_name: Option<String>,
pub index: Option<i32>,
}
Expand description
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
.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>
Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
display_name: Option<String>
Required. The display name of the AnnotationSpec. Maximum of 64 characters.
index: Option<i32>
Output only. 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.
Trait Implementations§
source§impl Clone for GoogleCloudDatalabelingV1beta1AnnotationSpec
impl Clone for GoogleCloudDatalabelingV1beta1AnnotationSpec
source§fn clone(&self) -> GoogleCloudDatalabelingV1beta1AnnotationSpec
fn clone(&self) -> GoogleCloudDatalabelingV1beta1AnnotationSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more