|
1 | | -from labelbox.data.annotation_types.ner import TextEntity |
2 | | -from labelbox.data.annotation_types.geometry import Geometry |
3 | | -from labelbox.data.annotation_types.classification.classification import ClassificationAnswer, Radio, Text |
4 | | -from labelbox.data.annotation_types.geometry.mask import Mask |
5 | | -from typing import Type, Union, List, Dict, Any |
| 1 | +from typing import Union, List, Dict, Any |
| 2 | + |
| 3 | +from pydantic import BaseModel |
6 | 4 |
|
7 | 5 | from labelbox.schema.ontology import Classification as OClassification, Option |
| 6 | +from labelbox.data.annotation_types.classification.classification import ClassificationAnswer |
8 | 7 | from labelbox.data.annotation_types.annotation import AnnotationType, ClassificationAnnotation, ObjectAnnotation, VideoAnnotationType |
9 | 8 | from labelbox.data.annotation_types.data.raster import RasterData |
10 | 9 | from labelbox.data.annotation_types.data.text import TextData |
11 | 10 | from labelbox.data.annotation_types.data.video import VideoData |
12 | 11 | from labelbox.data.annotation_types.metrics import Metric |
13 | | -from pydantic import BaseModel |
| 12 | +from labelbox.data.annotation_types.geometry.mask import Mask |
14 | 13 |
|
15 | 14 |
|
16 | 15 | class Label(BaseModel): |
17 | | - # TODO: This sounds too much like the other label we need to rename this... |
18 | 16 | data: Union[VideoData, RasterData, TextData] |
19 | 17 | annotations: List[Union[AnnotationType, VideoAnnotationType, Metric]] = [] |
20 | 18 | extra: Dict[str, Any] = {} |
|
0 commit comments