Skip to content

Commit 9f3ade6

Browse files
authored
Removed nested classifications for python annotation tools
1 parent 973895d commit 9f3ade6

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

examples/annotation_import/text.ipynb

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,7 @@
232232
{
233233
"cell_type": "code",
234234
"source": [
235-
"########## Classification - Radio (with subclassifcations) ##########\n",
236-
"\n",
237-
"# Python annotation\n",
238-
"radio_annotation_nested = ClassificationAnnotation(\n",
239-
" name=\"radio_question_sub\", \n",
240-
" value=Radio(answer = ClassificationAnswer(name = \"first_radio_answer\")),\n",
241-
" classifications=[\n",
242-
" \tClassificationAnnotation(\n",
243-
" \tname=\"sub_radio_question\",\n",
244-
" \t\tvalue=Radio(answer=ClassificationAnswer(name=\"first_sub_radio_answer\"))\n",
245-
" )\n",
246-
" ]\n",
247-
")\n",
248-
"\n",
235+
"########## Nested Classifications are only supported with NDJSON tools ##########\n",
249236
"\n",
250237
"# NDJSON\n",
251238
"radio_annotation_ndjson_with_subclass = {\n",

0 commit comments

Comments
 (0)