Class AnnotationSpec (1.13.2)
AnnotationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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
.
Attributes |
Name |
Description |
display_name |
str
Required. The display name of the
AnnotationSpec. Maximum of 64 characters.
|
description |
str
Optional. User-provided description of the
annotation specification. The description can be
up to 10,000 characters long.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]