|
22 | 22 | 'cuboidannotation': {'attachment', 'attachment_type', 'instruction', |
23 | 23 | 'objects_to_annotate', 'min_width', 'min_height', 'with_labels', 'layers'}, |
24 | 24 | 'datacollection': {'attachment', 'attachment_type', 'fields'}, |
25 | | - 'audiotranscription': {'attachment', 'attachment_type', 'verbatim', 'phrases'}} |
| 25 | + 'audiotranscription': {'attachment', 'attachment_type', 'verbatim', 'phrases'} |
| 26 | + 'annotation': {'attachment', 'attachment_type', 'instruction', 'objects_to_annotate', 'with_labels', 'examples', 'min_width', 'min_height', 'layers', 'annotation_attributes'}, |
| 27 | + 'polygonannotation': {'attachment', 'attachment_type', 'instruction', 'objects_to_annotate', 'with_labels', 'examples', 'layers', 'annotation_attributes'}, |
| 28 | + 'lineannotation': |
| 29 | + {'attachment', 'attachment_type', 'instruction', 'objects_to_annotate', 'with_labels', 'examples', 'splines', 'layers', 'annotation_attributes'}, |
| 30 | + 'datacollection': {'attachment', 'attachment_type', 'fields'}, |
| 31 | + 'audiotranscription': {'attachment', 'attachment_type', 'verbatim'}, |
| 32 | + 'pointannotation': {'attachment_type','attachment', 'objects_to_annotate','with_labels', 'examples', 'layers','annotation_attributes'}, |
| 33 | + 'segmentannotation': {'attachment_type','attachment', 'labels', 'allow_unlabeled'}} |
26 | 34 | SCALE_ENDPOINT = 'https://api.scaleapi.com/v1/' |
27 | 35 | DEFAULT_LIMIT = 100 |
28 | 36 | DEFAULT_OFFSET = 0 |
@@ -172,3 +180,13 @@ def create_audiotranscription_task(self, **kwargs): |
172 | 180 | validate_payload('audiotranscription', kwargs) |
173 | 181 | taskdata = self._postrequest('task/audiotranscription', payload=kwargs) |
174 | 182 | return Task(taskdata, self) |
| 183 | + |
| 184 | + def create_pointannotation_task(self, **kwargs): |
| 185 | + validate_payload('pointannotation', kwargs) |
| 186 | + taskdata = self._postrequest('task/pointannotation', payload=kwargs) |
| 187 | + return Task(taskdata, self) |
| 188 | + |
| 189 | + def create_segmentannotation_task(self, **kwargs): |
| 190 | + validate_payload('segmentannotation', kwargs) |
| 191 | + taskdata = self._postrequest('task/segmentannotation', payload=kwargs) |
| 192 | + return Task(taskdata, self) |
0 commit comments