Schema
meganno_client.schema.Schema
The Schema class defines an annotation schema for a project.
Attributes:
Name | Type | Description |
---|---|---|
__service |
object
|
Service object for the connected project. |
set_schemas(schemas=None)
Set a user-defined schema
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schemas |
dict
|
Schema of annotation task which defines a Full Example: |
None
|
Raises:
Type | Description |
---|---|
Exception
|
If response code is not successful |
Returns:
Name | Type | Description |
---|---|---|
response |
json
|
A json of the response |
value(active=None)
Get project schema
Parameters:
Name | Type | Description | Default |
---|---|---|---|
active |
bool
|
If |
None
|
get_active_schemas()
Get the active schema for the project.
get_history()
Get the full history of project schemas