pixano.features.schemas.schema_group
SchemaGroup
Bases: Enum
Schema group.
It defines the different schema groups to which a schema can belong.
Attributes:
Name | Type | Description |
---|---|---|
ANNOTATION |
Annotation schema group. |
|
EMBEDDING |
Embedding schema group. |
|
ITEM |
Item schema group. |
|
ENTITY |
Entity schema group. |
|
VIEW |
View schema group. |
group_to_str(group, plural=False)
Convert the schema group to a string.
Attributes:
Name | Type | Description |
---|---|---|
group |
The schema group. |
|
plural |
Whether to use the plural form of the word. |
Returns:
Type | Description |
---|---|
str
|
The string for the given schema group. |
Source code in pixano/features/schemas/schema_group.py
schema_to_group(schema_type)
Get the schema group of a given schema type.