|
143 | 143 | }, |
144 | 144 | "source": [ |
145 | 145 | "# Add your api key\n", |
146 | | - "API_KEY=None\n", |
| 146 | + "API_KEY=API_KEY=None\n", |
147 | 147 | "client = lb.Client(API_KEY)" |
148 | 148 | ], |
149 | 149 | "cell_type": "code", |
|
229 | 229 | "id": "CmakTYIMnFul" |
230 | 230 | }, |
231 | 231 | "source": [ |
232 | | - "########## Classification - Radio (with subclassifcations) is only suppported with NDJSON tools ##########\n", |
| 232 | + "########## Classification - Radio and Checklist (with subclassifcations) is only suppported with NDJSON tools ##########\n", |
233 | 233 | "\n", |
234 | 234 | "# NDJSON\n", |
235 | 235 | "nested_radio_annotation_ndjson= {\n", |
|
340 | 340 | }, |
341 | 341 | { |
342 | 342 | "metadata": { |
343 | | - "id": "5GOSI_yunFul", |
344 | | - "outputId": "0082435a-0533-469e-b790-8cc93d96f084", |
345 | 343 | "colab": { |
346 | 344 | "base_uri": "https://localhost:8080/" |
347 | | - } |
| 345 | + }, |
| 346 | + "id": "5GOSI_yunFul", |
| 347 | + "outputId": "0082435a-0533-469e-b790-8cc93d96f084" |
348 | 348 | }, |
349 | 349 | "source": [ |
350 | 350 | "# You can now include ohter fields like attachments, media type and metadata in the data row creation step: https://docs.labelbox.com/reference/text-file \n", |
|
401 | 401 | }, |
402 | 402 | { |
403 | 403 | "metadata": { |
404 | | - "id": "p8dR-eegnFum", |
405 | | - "outputId": "f8933a3d-d1c6-4b61-a73d-760c44bc1d6b", |
406 | 404 | "colab": { |
407 | 405 | "base_uri": "https://localhost:8080/" |
408 | | - } |
| 406 | + }, |
| 407 | + "id": "p8dR-eegnFum", |
| 408 | + "outputId": "f8933a3d-d1c6-4b61-a73d-760c44bc1d6b" |
409 | 409 | }, |
410 | 410 | "source": [ |
411 | 411 | "## Setup the ontology and link the tools created above.\n", |
|
469 | 469 | " ]\n", |
470 | 470 | ")\n", |
471 | 471 | "\n", |
472 | | - "ontology = client.create_ontology(\"Ontology Text Annotations\", ontology_builder.asdict())\n" |
| 472 | + "ontology = client.create_ontology(\"Ontology Text Annotations\", ontology_builder.asdict(), media_type=lb.MediaType.Text)\n" |
473 | 473 | ], |
474 | 474 | "cell_type": "code", |
475 | 475 | "outputs": [ |
|
543 | 543 | }, |
544 | 544 | { |
545 | 545 | "metadata": { |
546 | | - "id": "Pxpuz4CPnFum", |
547 | | - "outputId": "1ef538fb-f99a-4a9a-9e8e-eff9857d219b", |
548 | 546 | "colab": { |
549 | 547 | "base_uri": "https://localhost:8080/" |
550 | | - } |
| 548 | + }, |
| 549 | + "id": "Pxpuz4CPnFum", |
| 550 | + "outputId": "1ef538fb-f99a-4a9a-9e8e-eff9857d219b" |
551 | 551 | }, |
552 | 552 | "source": [ |
553 | 553 | "# Setup Batches and Ontology\n", |
|
690 | 690 | }, |
691 | 691 | { |
692 | 692 | "metadata": { |
693 | | - "id": "zKdWZm24nFun", |
694 | | - "outputId": "7f4fa248-a5d6-471b-c9c3-bb95f1c14a68", |
695 | 693 | "colab": { |
696 | 694 | "base_uri": "https://localhost:8080/" |
697 | | - } |
| 695 | + }, |
| 696 | + "id": "zKdWZm24nFun", |
| 697 | + "outputId": "7f4fa248-a5d6-471b-c9c3-bb95f1c14a68" |
698 | 698 | }, |
699 | 699 | "source": [ |
700 | 700 | "# Upload MAL label for this data row in project\n", |
|
735 | 735 | }, |
736 | 736 | { |
737 | 737 | "metadata": { |
738 | | - "id": "-qZOAF2BnFun", |
739 | | - "outputId": "1ff18daf-cb6e-4aa9-e880-fae13e45d84e", |
740 | 738 | "colab": { |
741 | 739 | "base_uri": "https://localhost:8080/" |
742 | | - } |
| 740 | + }, |
| 741 | + "id": "-qZOAF2BnFun", |
| 742 | + "outputId": "1ff18daf-cb6e-4aa9-e880-fae13e45d84e" |
743 | 743 | }, |
744 | 744 | "source": [ |
745 | 745 | "# Upload label for this data row in project\n", |
|
0 commit comments