|
14 | 14 | 'fields', 'choices'}, |
15 | 15 | 'annotation': {'attachment', 'attachment_type', 'instruction', |
16 | 16 | 'objects_to_annotate', 'with_labels', 'examples'}, |
| 17 | + 'polygonannotation': {'attachment', 'attachment_type', 'instruction', |
| 18 | + 'objects_to_annotate', 'with_labels', 'examples'}, |
| 19 | + 'lineannotation': {'attachment', 'attachment_type', 'instruction', |
| 20 | + 'objects_to_annotate', 'with_labels', 'examples'}, |
17 | 21 | 'datacollection': {'attachment', 'attachment_type', 'fields'}, |
18 | 22 | 'audiotranscription': {'attachment', 'attachment_type', 'verbatim'}} |
19 | 23 | SCALE_ENDPOINT = 'https://api.scaleapi.com/v1/' |
@@ -146,6 +150,16 @@ def create_annotation_task(self, **kwargs): |
146 | 150 | taskdata = self._postrequest('task/annotation', payload=kwargs) |
147 | 151 | return Task(taskdata, self) |
148 | 152 |
|
| 153 | + def create_polygonannotation_task(self, **kwargs): |
| 154 | + validate_payload('polygonannotation', kwargs) |
| 155 | + taskdata = self._postrequest('task/polygonannotation', payload=kwargs) |
| 156 | + return Task(taskdata, self) |
| 157 | + |
| 158 | + def create_lineannotation_task(self, **kwargs): |
| 159 | + validate_payload('lineannotation', kwargs) |
| 160 | + taskdata = self._postrequest('task/lineannotation', payload=kwargs) |
| 161 | + return Task(taskdata, self) |
| 162 | + |
149 | 163 | def create_datacollection_task(self, **kwargs): |
150 | 164 | validate_payload('datacollection', kwargs) |
151 | 165 | taskdata = self._postrequest('task/datacollection', payload=kwargs) |
|
0 commit comments