Skip to content
Back to skills

Data Preparation

ASecurity

"Validate and prepare raw text-classification inputs, label

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythongogit

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-preparation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-fb2ff8fe/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-fb2ff8fe)

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: data-preparation
description: "Validate and prepare raw text-classification inputs, label
  dictionaries, n-gram expansions, and cache expectations for the legacy
  brightmart/text_classification workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Data Preparation

Use this sub-skill when you need to validate or normalize repo-style text-classification data before a model-specific workflow runs.

This sub-skill is for the legacy TensorFlow 1.x / TFLearn code paths that back the generated repo skill. Its bundled helpers are plain Python 3.7-compatible scripts and do not require TensorFlow, but they must still respect the repo's older data conventions.

## Covers
- raw single-label lines: `text __label__label`
- raw multi-label lines with repeated or space-separated `__label__` markers
- prediction TSV rows: `question_id<TAB>text`
- relation / two-sentence rows: `text1<TAB>text2 __label__label`
- vocabulary and label dictionaries
- HDF5 cache keys and pickle tuple shapes
- adjacent n-gram expansion
- multi-hot labels and fixed top-label alignment
- seq2seq label shift tokens `_GO`, `_END`, `_PAD`

## Read first
- `references/data-formats.md`
- `references/workflows.md`
- `references/troubleshooting.md`

## Use the bundled scripts
- `scripts/validate_text_classification_data.py`
- `scripts/generate_ngrams.py`

## Do not use for
- model architecture selection
- training loop behavior
- ensemble/logit fusion
- downstream task choice outside data preparation

Files in this skill

  • SKILL.md1.5 KB
  • references/data-formats.md6.8 KB
  • references/troubleshooting.md8.4 KB
  • references/workflows.md6.9 KB
  • scripts/generate_ngrams.py5.7 KB
  • scripts/validate_text_classification_data.py14.3 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.