技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
text-classification【数据与研究】Routes legacy TensorFlow 1.x text-classification workflows for brightmart/text_classification, including raw data preparation, classic baselines, seq2seq and memory models, relation workflows, and ensemble post-processing.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill for the legacy brightmart/text_classification checkout: a TensorFlow 1.x / TFLearn-era collection of classic text-classification models, Zhihu-style data utilities, seq2seq label generation, memory-network variants, relation workflows, and logit post-processing helpers.
This repository is not an installable Python package. When you need runtime inspection, use a Python 3.7-era TensorFlow 1.x/TFLearn environment and the bundled smoke scripts; do not assume TensorFlow 2.x, eager execution, or Python 3.13 compatibility.
references/repo-provenance.md if you need to compare this skill against another checkout or decide whether it is stale.references/model-overview.md for the high-level model-family map.references/troubleshooting.md for cross-cutting TensorFlow 1.x, cache, checkpoint, and import pitfalls.scripts/check_legacy_text_classification_env.py when you want a safe environment/import smoke check.| Task signal | Read this sub-skill | Why |
|---|---|---|
Raw text lines, __label__ parsing, vocabulary/label dictionaries, n-grams, cache keys, TSV validation, label formatting | sub-skills/data-preparation/SKILL.md | Validates and normalizes the repo's Zhihu-style data formats before a model run. |
| fastTextB, TextCNN, TextRNN, TextRCNN, Hierarchical Attention Network, BERT, toy TFLearn examples, graph-shape inspection | sub-skills/classification-models/SKILL.md | Covers the classic flat classifier families and their checkpoints, shapes, and losses. |
Seq2seq with attention, Transformer seq2seq/classifier, EntityNetwork, Dynamic Memory Network, _GO/_END/_PAD label generation | sub-skills/sequence-and-memory-models/SKILL.md | Covers sequence-generation and memory-network style workflows. |
| Two-sentence relation classification, TextCNN+RCNN hybrids, boosting label weights, ensemble logit fusion | sub-skills/relation-and-ensemble-workflows/SKILL.md | Covers paired-input workflows and post-processing of exported logits. |
references/model-overview.md — concise model-family selection guide for the repo.references/troubleshooting.md — cross-cutting failure patterns that affect more than one sub-skill.references/repo-provenance.md — commit, dirty-state, and evidence-path snapshot for staleness checks.references/repo-routing-metadata.json — structured metadata consumed by the repo-skills router during import.scripts/check_legacy_text_classification_env.py — safe import/environment smoke check for the legacy TensorFlow 1.x stack and common helper modules.data-preparation first whenever raw line formats, cache keys, or label encodings are unclear; many downstream failures start there.classification-models for the main flat classifiers; use sequence-and-memory-models only when label generation or memory context is part of the contract.relation-and-ensemble-workflows for two-input relation tasks, hybrid CNN+RCNN variants, boosting, and logit fusion instead of trying to adapt a flat classifier ad hoc.references/repo-provenance.md first.