Text and tabular modalities
Text and tabular projects sit alongside computer vision in the same product.
Project types
Type |
Modality |
Annotate |
|---|---|---|
|
text |
Class buttons |
|
text |
Character span list |
|
tabular |
Class buttons on rows |
|
tabular |
Numeric target value |
Create these from New Project. Document/OCR remains planned.
Import
Text:
POST /api/projects/{id}/import/text— JSONL ({"text","label"?,"spans"?}) or CSVTabular:
POST /api/projects/{id}/import/tabular— CSV with header + optionallabel/ numeric column
UI: project → Import.
Samples API
Method |
Path |
|---|---|
GET/POST |
|
GET/PATCH |
|
POST |
|
PATCH body can set class_id / class_name, spans, or value.
Export
POST /api/projects/{id}/export with format: jsonl (text) or csv (tabular).
Canonical export (GET /api/projects/{id}/canonical) returns modality-aware samples.
Training adapters
Optional installs:
pip install "oneopen-ml-studio[tabular]" # scikit-learn
pip install "oneopen-ml-studio[nlp]" # transformers + datasets
POST /api/projects/{id}/adapters/prepare— write prepared CSV / HF JSONLPOST /api/projects/{id}/adapters/train— sklearn LogisticRegression / Ridge; Hugging Face returns prepared artifacts (full Trainer not in-process)
YOLO /train and YOLO/COCO export return 400 on text/tabular projects.