pixano.app.models.annotations
AnnotationModel(created_at=None, updated_at=None, **data)
Bases: BaseSchemaModel[Annotation]
Model for the Annotation schema.
Source code in pixano/app/models/base_schema.py
from_row(row, table_info)
classmethod
Create an AnnotationModel from an Annotation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
row
|
Annotation
|
The row to create the model from. |
required |
table_info
|
TableInfo
|
The table info of the row. |
required |
Returns:
Type | Description |
---|---|
Self
|
The created model. |
Source code in pixano/app/models/annotations.py
to_row(dataset)
Create an Annotation from the model.