Skip to content

Commit 1087152

Browse files
authored
Ontology updates (instructions --> name)
1 parent 2df204f commit 1087152

File tree

1 file changed

+61
-46
lines changed

1 file changed

+61
-46
lines changed

examples/prediction_upload/text_predictions.ipynb

Lines changed: 61 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,25 @@
8888
"!pip install -q 'labelbox[data]'"
8989
],
9090
"metadata": {
91-
"id": "cm8xMaLbGb7v"
91+
"id": "cm8xMaLbGb7v",
92+
"outputId": "f82cdc12-a572-4d42-fe74-3f65376f82fb",
93+
"colab": {
94+
"base_uri": "https://localhost:8080/"
95+
}
9296
},
93-
"execution_count": 165,
94-
"outputs": []
97+
"execution_count": 1,
98+
"outputs": [
99+
{
100+
"output_type": "stream",
101+
"name": "stdout",
102+
"text": [
103+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m187.7/187.7 KB\u001b[0m \u001b[31m6.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
104+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m28.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
105+
"\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
106+
" Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
107+
]
108+
}
109+
]
95110
},
96111
{
97112
"cell_type": "code",
@@ -104,7 +119,7 @@
104119
"metadata": {
105120
"id": "NIq-6M9kHKSs"
106121
},
107-
"execution_count": 166,
122+
"execution_count": 2,
108123
"outputs": []
109124
},
110125
{
@@ -126,7 +141,7 @@
126141
"metadata": {
127142
"id": "z7ZLKLYLHP__"
128143
},
129-
"execution_count": 167,
144+
"execution_count": 3,
130145
"outputs": []
131146
},
132147
{
@@ -161,7 +176,7 @@
161176
"metadata": {
162177
"id": "FJhCAqeR-cUJ"
163178
},
164-
"execution_count": 168,
179+
"execution_count": 4,
165180
"outputs": []
166181
},
167182
{
@@ -188,7 +203,7 @@
188203
"metadata": {
189204
"id": "SOOR0zCBKef_"
190205
},
191-
"execution_count": 169,
206+
"execution_count": 5,
192207
"outputs": []
193208
},
194209
{
@@ -230,7 +245,7 @@
230245
"metadata": {
231246
"id": "cXKGv0BeNXQi"
232247
},
233-
"execution_count": 170,
248+
"execution_count": 6,
234249
"outputs": []
235250
},
236251
{
@@ -271,7 +286,7 @@
271286
"metadata": {
272287
"id": "vdwPTRkP6JIx"
273288
},
274-
"execution_count": 171,
289+
"execution_count": 7,
275290
"outputs": []
276291
},
277292
{
@@ -294,7 +309,7 @@
294309
"metadata": {
295310
"id": "ie2Zni_d6MI8"
296311
},
297-
"execution_count": 172,
312+
"execution_count": 8,
298313
"outputs": []
299314
},
300315
{
@@ -323,24 +338,24 @@
323338
"colab": {
324339
"base_uri": "https://localhost:8080/"
325340
},
326-
"outputId": "8c427e26-591a-4a90-edba-9d28dd686f3e"
341+
"outputId": "9f63b64d-c38a-4b41-e4ba-36ef7a59a2ea"
327342
},
328-
"execution_count": 173,
343+
"execution_count": 9,
329344
"outputs": [
330345
{
331346
"output_type": "stream",
332347
"name": "stdout",
333348
"text": [
334349
"<DataRow {\n",
335-
" \"created_at\": \"2023-02-07 20:23:02+00:00\",\n",
350+
" \"created_at\": \"2023-02-10 14:47:36+00:00\",\n",
336351
" \"external_id\": null,\n",
337-
" \"global_key\": \"0816b92a-4c5a-4ac6-9bb7-2401852782f1\",\n",
352+
" \"global_key\": \"9ed73489-3b36-49c0-884d-eeb6af3ce1a5\",\n",
338353
" \"media_attributes\": {},\n",
339354
" \"metadata\": [],\n",
340355
" \"metadata_fields\": [],\n",
341356
" \"row_data\": \"https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt\",\n",
342-
" \"uid\": \"clduovifd2faa07xu9aq3byqt\",\n",
343-
" \"updated_at\": \"2023-02-07 20:23:02+00:00\"\n",
357+
" \"uid\": \"cldyn7owq15v907wzbhht7fv7\",\n",
358+
" \"updated_at\": \"2023-02-10 14:47:36+00:00\"\n",
344359
"}>\n"
345360
]
346361
}
@@ -365,18 +380,18 @@
365380
" classifications=[ # List of Classification objects\n",
366381
" lb.Classification(\n",
367382
" class_type=lb.Classification.Type.RADIO,\n",
368-
" instructions=\"radio_question\", \n",
383+
" name=\"radio_question\", \n",
369384
" options=[lb.Option(value=\"first_radio_answer\")]\n",
370385
" ),\n",
371386
" lb.Classification(\n",
372387
" class_type=lb.Classification.Type.RADIO,\n",
373-
" instructions=\"nested_radio_question\", \n",
388+
" name=\"nested_radio_question\", \n",
374389
" options=[\n",
375390
" lb.Option(value=\"first_radio_answer\",\n",
376391
" options=[\n",
377392
" lb.Classification(\n",
378393
" class_type=lb.Classification.Type.RADIO,\n",
379-
" instructions=\"sub_radio_question\",\n",
394+
" name=\"sub_radio_question\",\n",
380395
" options=[\n",
381396
" lb.Option(value=\"first_sub_radio_answer\")\n",
382397
" ]\n",
@@ -387,7 +402,7 @@
387402
" ),\n",
388403
" lb.Classification(\n",
389404
" class_type=lb.Classification.Type.CHECKLIST,\n",
390-
" instructions=\"checklist_question\", \n",
405+
" name=\"checklist_question\", \n",
391406
" options=[\n",
392407
" lb.Option(value=\"first_checklist_answer\"),\n",
393408
" lb.Option(value=\"second_checklist_answer\"),\n",
@@ -396,17 +411,17 @@
396411
" ), \n",
397412
" lb.Classification(\n",
398413
" class_type=lb.Classification.Type.TEXT,\n",
399-
" instructions=\"free_text\"\n",
414+
" name=\"free_text\"\n",
400415
" ),\n",
401416
" lb.Classification(\n",
402417
" class_type=lb.Classification.Type.CHECKLIST,\n",
403-
" instructions=\"nested_checklist_question\",\n",
418+
" name=\"nested_checklist_question\",\n",
404419
" options=[\n",
405420
" lb.Option(\"first_checklist_answer\",\n",
406421
" options=[\n",
407422
" lb.Classification(\n",
408423
" class_type=lb.Classification.Type.CHECKLIST,\n",
409-
" instructions=\"sub_checklist_question\", \n",
424+
" name=\"sub_checklist_question\", \n",
410425
" options=[lb.Option(\"first_sub_checklist_answer\")]\n",
411426
" )\n",
412427
" ]\n",
@@ -425,7 +440,7 @@
425440
"metadata": {
426441
"id": "Kt4XWWqgIiWk"
427442
},
428-
"execution_count": 174,
443+
"execution_count": 10,
429444
"outputs": []
430445
},
431446
{
@@ -449,7 +464,7 @@
449464
"metadata": {
450465
"id": "8n-AvzdiOR6d"
451466
},
452-
"execution_count": 175,
467+
"execution_count": 11,
453468
"outputs": []
454469
},
455470
{
@@ -471,9 +486,9 @@
471486
"colab": {
472487
"base_uri": "https://localhost:8080/"
473488
},
474-
"outputId": "b99b53c1-9296-460f-bed1-28a4f05079d8"
489+
"outputId": "e8a1cf02-45c8-4383-9d36-5752d9b434ef"
475490
},
476-
"execution_count": 176,
491+
"execution_count": 12,
477492
"outputs": [
478493
{
479494
"output_type": "execute_result",
@@ -483,7 +498,7 @@
483498
]
484499
},
485500
"metadata": {},
486-
"execution_count": 176
501+
"execution_count": 12
487502
}
488503
]
489504
},
@@ -525,7 +540,7 @@
525540
"metadata": {
526541
"id": "zv2OLTXKSGWv"
527542
},
528-
"execution_count": 177,
543+
"execution_count": 13,
529544
"outputs": []
530545
},
531546
{
@@ -558,7 +573,7 @@
558573
"metadata": {
559574
"id": "F-Y7sSyAV3tn"
560575
},
561-
"execution_count": 178,
576+
"execution_count": 14,
562577
"outputs": []
563578
},
564579
{
@@ -587,9 +602,9 @@
587602
"colab": {
588603
"base_uri": "https://localhost:8080/"
589604
},
590-
"outputId": "a62c87c5-8d66-47bc-dc82-8899bedf2d04"
605+
"outputId": "2f733295-06d6-4725-994f-e429c01bead4"
591606
},
592-
"execution_count": 179,
607+
"execution_count": 15,
593608
"outputs": [
594609
{
595610
"output_type": "stream",
@@ -633,12 +648,12 @@
633648
],
634649
"metadata": {
635650
"id": "jEtoDiDrPFvI",
636-
"outputId": "51a8e2e5-27c9-4051-8176-7a37018d1852",
651+
"outputId": "bd679c98-b151-4f61-ab82-88483b9f8f2b",
637652
"colab": {
638653
"base_uri": "https://localhost:8080/"
639654
}
640655
},
641-
"execution_count": 180,
656+
"execution_count": 16,
642657
"outputs": [
643658
{
644659
"output_type": "stream",
@@ -672,22 +687,22 @@
672687
"colab": {
673688
"base_uri": "https://localhost:8080/"
674689
},
675-
"outputId": "6708c469-4544-4a00-e866-8fd446944554",
690+
"outputId": "fde12aaf-9ad1-4071-c3da-537a1867d72c",
676691
"pycharm": {
677692
"is_executing": true
678693
}
679694
},
680-
"execution_count": 181,
695+
"execution_count": 17,
681696
"outputs": [
682697
{
683698
"output_type": "execute_result",
684699
"data": {
685700
"text/plain": [
686-
"<Batch ID: 42d72d20-a725-11ed-8344-ad4c26b44c8e>"
701+
"<Batch ID: e5eb4680-a951-11ed-9e69-9fa57a6a78c6>"
687702
]
688703
},
689704
"metadata": {},
690-
"execution_count": 181
705+
"execution_count": 17
691706
}
692707
]
693708
},
@@ -758,7 +773,7 @@
758773
"metadata": {
759774
"id": "A8_HVvu9Uvfl"
760775
},
761-
"execution_count": 182,
776+
"execution_count": 18,
762777
"outputs": []
763778
},
764779
{
@@ -792,7 +807,7 @@
792807
"metadata": {
793808
"id": "9gD_alThQA3G"
794809
},
795-
"execution_count": 183,
810+
"execution_count": 19,
796811
"outputs": []
797812
},
798813
{
@@ -822,9 +837,9 @@
822837
"colab": {
823838
"base_uri": "https://localhost:8080/"
824839
},
825-
"outputId": "e78e544b-e6a3-42db-8a71-b0af8c3113c3"
840+
"outputId": "5b73ee2f-1248-42bd-cdaf-4d685ca4cd1e"
826841
},
827-
"execution_count": 184,
842+
"execution_count": 20,
828843
"outputs": [
829844
{
830845
"output_type": "stream",
@@ -856,9 +871,9 @@
856871
"colab": {
857872
"base_uri": "https://localhost:8080/"
858873
},
859-
"outputId": "748982b6-7593-4232-c2cc-d30d8203a2dd"
874+
"outputId": "46f40924-17ad-459a-86ea-b50fed73c692"
860875
},
861-
"execution_count": 185,
876+
"execution_count": 21,
862877
"outputs": [
863878
{
864879
"output_type": "execute_result",
@@ -868,7 +883,7 @@
868883
]
869884
},
870885
"metadata": {},
871-
"execution_count": 185
886+
"execution_count": 21
872887
}
873888
]
874889
},
@@ -890,7 +905,7 @@
890905
"metadata": {
891906
"id": "aAhkyvJlWK1p"
892907
},
893-
"execution_count": 186,
908+
"execution_count": 22,
894909
"outputs": []
895910
}
896911
]

0 commit comments

Comments
 (0)