pixano.features.schemas.annotations.annotation
Annotation(created_at=None, updated_at=None, **data)
Bases: BaseSchema
Annotations are used to annotate an entity in a dataset.
It can refer to an entity, an item, and a view.
Attributes:
Name | Type | Description |
---|---|---|
item_ref |
ItemRef
|
Reference to the annotation's item. |
view_ref |
ViewRef
|
Reference to the annotation's view. |
entity_ref |
EntityRef
|
Reference to the annotation's entity. |
source_ref |
SourceRef
|
Reference to the annotation's source. |
Source code in pixano/features/schemas/base_schema.py
entity
property
Get the annotation's entity.
item
property
Get the annotation's item.
view
property
Get the annotation's view.
is_annotation(cls, strict=False)
Check if a class is an Annotation or subclass of Annotation.