Skip to content
Back to skills

Structured Label Issues

ASecurity

"Route cleanlab token classification, object detection, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
testingapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill structured-label-issues --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Structured Label Issues?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Structured Label Issues
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-structured-label-issues/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-structured-label-issues)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: structured-label-issues
description: "Route cleanlab token classification, object detection, and
  semantic segmentation label-issue workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
  root-skill: cleanlab
license: Apache 2.0
---

# Structured Label Issues

Use this sub-skill for cleanlab workflows where each dataset example has structured labels rather than one scalar label:

- **Token classification**: each sentence/document is a list of tokens with one class label and one probability vector per token.
- **Object detection**: each image has annotated bounding boxes/classes and detector predictions grouped by class.
- **Semantic segmentation**: each image has a pixel mask and per-pixel class probabilities.

Keep this file as a router. Read the bundled references for schemas, API calls, and troubleshooting before writing code.

## Route quickly

| User asks for | Route here? | First reference |
|---|---:|---|
| Named-entity recognition, POS tagging, or other per-token labels | Yes | [`references/token-classification.md`](references/token-classification.md) |
| Finding/ranking/displaying token label issues | Yes | [`references/token-classification.md`](references/token-classification.md) |
| Object-detection label issues, bounding-box ranking, or box visualization | Yes | [`references/object-detection.md`](references/object-detection.md) |
| Semantic-segmentation mask label issues or pixel/image ranking | Yes | [`references/segmentation.md`](references/segmentation.md) |
| Exact input schemas for all three families | Yes | [`references/data-formats.md`](references/data-formats.md) |
| Function signatures and return types | Yes | [`references/api-reference.md`](references/api-reference.md) |
| Shape/schema/backend failures | Yes | [`references/troubleshooting.md`](references/troubleshooting.md) |

## Route elsewhere

- If the user asks about **span classification** specifically, route to the sibling `experimental` sub-skill (`../experimental/`). Span classification is intentionally not owned here.
- If the user wants a **broad audit across one dataset** with many issue types or a single audit/report wrapper, route to the sibling `datalab` sub-skill (`../datalab/`). Use this sub-skill only when the user wants the direct task-specific token/object/segmentation APIs.
- For standard multiclass/binary classification, use [`../classification/SKILL.md`](../classification/SKILL.md).
- For multilabel classification or regression labels, use [`../tabular-label-issues/SKILL.md`](../tabular-label-issues/SKILL.md).
- For multi-annotator consensus/quality, use [`../multiannotator/SKILL.md`](../multiannotator/SKILL.md).
- For out-of-distribution or outlier scoring, use [`../outlier/SKILL.md`](../outlier/SKILL.md).

## Operating workflow

1. Identify the structured-output family: token classification, object detection, or semantic segmentation.
2. Validate data format first. Most failures are nested-list length mismatches, class-order mismatches, wrong bounding-box schema, or mask/probability shape errors.
3. Prefer out-of-sample model predictions/probabilities when available. Cleanlab scores are most meaningful when predictions were not obtained from a model fit on the same labels without cross-validation/holdout safeguards.
4. Use the family-specific `filter.find_label_issues` function when the user wants estimated issues; use `rank.get_label_quality_scores` plus `issues_from_scores` when the user wants ranking/thresholding control.
5. Use summary/visualization helpers only after confirming optional plotting dependencies are available or setting a non-interactive matplotlib backend for scripts and CI.
6. Interpret outputs at the right level: token tuples for token classification, image-level masks/indices plus per-box helper scores for object detection, and pixel masks plus image-level summaries for segmentation.

## Bundled helper

Run [`scripts/smoke_structured_label_issues.py`](scripts/smoke_structured_label_issues.py) to exercise deterministic tiny fixtures for all three families. It is distilled from the public tutorials and native tests rather than copied from a source script: tutorial notebooks require external downloads/interactive visualization, while native pytest files are test harnesses rather than safe reusable runtime helpers.

Files in this skill

  • SKILL.md4.2 KB
  • references/api-reference.md7.7 KB
  • references/data-formats.md5.1 KB
  • references/object-detection.md6.3 KB
  • references/segmentation.md5.3 KB
  • references/token-classification.md4.9 KB
  • references/troubleshooting.md6.7 KB
  • scripts/smoke_structured_label_issues.py11 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.