Developer guide for creating, modifying, and connecting ontologies via the Python SDK.
Tool
and Classification
type requires a specific value to be passed when creating the feature.
Feature | Class | Value |
---|---|---|
Bounding box | Tool | BBOX |
Polygon | Tool | POLYGON |
Polyline | Tool | LINE |
Point | Tool | POINT |
Segmentation mask | Tool | RASTER_SEGMENTATION |
Relationship | Tool | RELATIONSHIP |
Entity | Tool | NER |
Message ranking | Tool | MESSAGE_RANKING |
Single message selection | Tool | MESSAGE_SINGLE_SELECTION |
Multiple message selection | Tool | MESSAGE_MULTI_SELECTION |
Message step reasoning | Tool | STEP_REASONING |
Fact-checking | Tool | FACT_CHECKING |
Prompt rating | Tool | PROMPT_ISSUE |
Radio | Classification | RADIO |
Checklist | Classification | CHECKLIST |
Text | Classification | TEXT |
media_type
parameter, which represents the modality of the data rows that the ontology will be used to label. Certain features are only compatible with certain media types.
media_type
parameter of client.create_ontology
defaults to None
, but it’s highly recommended to specify one for validation and error handling.media_type
parameter takes the following values:
lb.MediaType.Audio
lb.MediaType.Conversational
lb.MediaType.Document
lb.MediaType.Geospatial_Tile
lb.MediaType.Html
lb.MediaType.Image
lb.MediaType.Simple_Tile
lb.MediaType.Text
lb.MediaType.Video
ontology_builder
or client.create_ontology_from_feature_schemas()
.
Tool | Value |
---|---|
Bounding box | rectangle |
Polygon | polygon |
Polyline | line |
Point | point |
Segmentation mask | raster-segmentation |
Entity | named-entity |
classifications
field that contains a list of classification features as children.