Create class

To create a class:

sa.create_annotation_class(
    project = "Project Name",
    name = "Class Name",
    color = “#FFAAAA”)

Upload classes

To upload a JSON file of classes to a project:

sa.create_annotation_classes_from_classes_json(
    project = "Project Name",
    classes_json = "./data/classes/classes.json")

Search classes

To search the classes of a project:

sa.search_annotation_classes(
    project = "Project Name")

Download classes

To download a project's JSON file of classes:

sa.download_annotation_classes_json(
    project = "Project Name", 
    folder = "./download/classes/")

Delete class

To delete a class:

sa.delete_annotation_class(
    project = "Project Name",
    annotation_class = "Class Name")

Did this page help you?