Skip to content

Commit 1629d66

Browse files
authored
Removed nested python annotation tool
1 parent 3c7128e commit 1629d66

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

examples/annotation_import/image.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,7 @@
198198
{
199199
"cell_type": "code",
200200
"source": [
201-
"########## Radio Classification ##########\n",
202-
"\n",
203-
"# Python annotation \n",
204-
"nested_radio_annotation = ClassificationAnnotation(\n",
205-
" name=\"nested_radio_question\", \n",
206-
" value=Radio(answer = ClassificationAnswer(name = \"first_radio_answer\")),\n",
207-
" classifications=[\n",
208-
" \tClassificationAnnotation(\n",
209-
" \tname=\"sub_radio_question\",\n",
210-
" \t\tvalue=Radio(answer=ClassificationAnswer(name=\"first_sub_radio_answer\"))\n",
211-
" )\n",
212-
" ]\n",
213-
")\n",
214-
"\n",
215-
"# NDJSON \n",
201+
"########## Nested Radio Classification is only supported with NDJSON ##########\n",
216202
"nested_radio_annotation_ndjson = {\n",
217203
" \"name\": \"nested_radio_question\",\n",
218204
" \"answer\": {\"name\": \"first_radio_answer\"},\n",
@@ -806,7 +792,7 @@
806792
" polygon_annotation, \n",
807793
" mask_annotation, \n",
808794
" point_annotation, \n",
809-
" polyline_annotation\n",
795+
" polyline_annotation\n"
810796
" ]\n",
811797
")\n",
812798
"\n",

0 commit comments

Comments
 (0)