Create class

To create a class:

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

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",
    type = "tag" )

Search classes

To search the classes of a project:

sa.search_annotation_classes(
    project = "Project Name",
    type = "tag" )

Delete class

To delete a class:

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

Did this page help you?