|
587 | 587 | "cell_type": "markdown", |
588 | 588 | "source": [ |
589 | 589 | "## Step 2: Create/select an Ontology\n", |
590 | | - "Your project should have the correct ontology setup with all the tools and classifications supported for your annotations, and the tool and classification names should match the `name` field in your annotations to ensure the correct feature schemas are matched.\n", |
| 590 | + "Your project should have the correct ontology setup with all the tools and classifications supported for your annotations, and the tool names and classification instructions should match the `name`/`instructions` fields in your annotations to ensure the correct feature schemas are matched.\n", |
591 | 591 | "\n", |
592 | 592 | "For example, when we create the bounding box annotation above, we provided the `name` as `polyline`. Now, when we setup our ontology, we must ensure that the name of my bounding box tool is also `polyline`. The same alignment must hold true for the other tools and classifications we create in our ontology.\n", |
593 | 593 | "\n", |
|
606 | 606 | " classifications=[ # List of Classification objects\n", |
607 | 607 | " Classification( # Radio classification given the name \"text\" with two options: \"first_radio_answer\" and \"second_radio_answer\"\n", |
608 | 608 | " class_type=Classification.Type.RADIO, \n", |
609 | | - " name=\"radio_question\", \n", |
| 609 | + " instructions=\"radio_question\", \n", |
610 | 610 | " options=[\n", |
611 | 611 | " Option(value=\"first_radio_answer\"),\n", |
612 | 612 | " Option(value=\"second_radio_answer\")\n", |
613 | 613 | " ]\n", |
614 | 614 | " ),\n", |
615 | 615 | " Classification( # Checklist classification given the name \"text\" with two options: \"first_checklist_answer\" and \"second_checklist_answer\"\n", |
616 | 616 | " class_type=Classification.Type.CHECKLIST, \n", |
617 | | - " name=\"checklist_question\", \n", |
| 617 | + " instructions=\"checklist_question\", \n", |
618 | 618 | " options=[\n", |
619 | 619 | " Option(value=\"first_checklist_answer\"),\n", |
620 | 620 | " Option(value=\"second_checklist_answer\") \n", |
621 | 621 | " ]\n", |
622 | 622 | " ), \n", |
623 | 623 | " Classification( # Text classification given the name \"text\"\n", |
624 | 624 | " class_type=Classification.Type.TEXT,\n", |
625 | | - " name=\"free_text\"\n", |
| 625 | + " instructions=\"free_text\"\n", |
626 | 626 | " ),\n", |
627 | 627 | " Classification(\n", |
628 | 628 | " class_type=Classification.Type.RADIO, \n", |
629 | | - " name=\"nested_radio_question\",\n", |
| 629 | + " instructions=\"nested_radio_question\",\n", |
630 | 630 | " options=[\n", |
631 | 631 | " Option(\"first_radio_answer\",\n", |
632 | 632 | " options=[\n", |
633 | 633 | " Classification(\n", |
634 | 634 | " class_type=Classification.Type.RADIO,\n", |
635 | | - " name=\"sub_radio_question\",\n", |
| 635 | + " instructions=\"sub_radio_question\",\n", |
636 | 636 | " options=[Option(\"first_sub_radio_answer\")]\n", |
637 | 637 | " )\n", |
638 | 638 | " ]\n", |
|
651 | 651 | " classifications=[\n", |
652 | 652 | " Classification(\n", |
653 | 653 | " class_type=Classification.Type.RADIO,\n", |
654 | | - " name=\"sub_radio_question\",\n", |
| 654 | + " instructions=\"sub_radio_question\",\n", |
655 | 655 | " options=[\n", |
656 | 656 | " Option(value=\"first_sub_radio_answer\")\n", |
657 | 657 | " ]\n", |
|
0 commit comments