本文へ移動
cccskills
無料GitHub で公開

data-analysis-nlp

Analyze text data with NLP — preprocessing, embeddings, topic modeling, sentiment, classification, and evaluation. Use when turning unstructured text into structured insight.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

NLP Data Analysis

Text is data with opinions, ambiguity, and mess. NLP analysis turns it into something countable: clean it, represent it, model it, and evaluate honestly — with error analysis, not just accuracy numbers.

Overview

The pipeline: define the question, collect and sample the text, clean it (with a light touch — over-cleaning destroys signal), represent it (from TF-IDF to embeddings to LLM features), model it (classify, cluster, extract), and evaluate on held-out data with error analysis. The question drives every choice: sentiment needs different handling than topic discovery, which needs different handling than entity extraction.

When to use

  • Classifying text: sentiment, topics, intent, toxicity, urgency.
  • Discovering structure: topic modeling, clustering, trend analysis over corpora.
  • Extracting information: entities, relations, key phrases from documents.
  • Analyzing language at scale: reviews, tickets, survey responses, social posts.

Core concepts

  • Preprocessing: normalization (case, unicode), tokenization, and noise removal — calibrated to the task. Keep emojis for sentiment; drop them for topic modeling. Document every step.
  • Representations: sparse (TF-IDF — interpretable, strong baseline), dense embeddings (semantic similarity, multilingual), LLM-derived (richest, most expensive). Start simple; complexity must earn its place.
  • Supervised tasks: classification/extraction with labeled data — split properly, mind class imbalance, choose metrics that match the cost of errors (F1, not accuracy, for rare classes).
  • Unsupervised discovery: topic models and clustering for exploration — validate topics by reading documents, not by coherence scores alone. Human judgment is the metric.
  • Annotation: quality labels are the ceiling. Write guidelines, measure inter-annotator agreement, adjudicate disagreements. Bad labels guarantee bad models.
  • Error analysis: read the mistakes. Confusion patterns tell you whether the problem is data, features, or the task definition itself.

Practical workflow

  1. Define the question and the decision the analysis informs; sample the data representatively.
  2. Explore: lengths, languages, noise, duplicates, class balance. Look at raw examples before any modeling.
  3. Establish baselines: keyword rules or TF-IDF + linear model. Record the score to beat.
  4. Iterate on representation and model, evaluating on a held-out set with appropriate metrics.
  5. Do error analysis on 50+ mistakes: categorize them, fix the data issues, and only then tune the model.
  6. Report with uncertainty: metrics plus confidence intervals, plus the error analysis summary and limitations.
NLP project checklist:
[ ] Question + decision defined; sample is representative
[ ] Preprocessing documented and justified per task
[ ] Baseline model + score recorded
[ ] Labels validated (agreement measured) if supervised
[ ] Held-out evaluation with task-appropriate metrics
[ ] Error analysis done; top failure modes addressed or noted

Common pitfalls

  • Skipping the baseline: jumping to LLMs for a task TF-IDF solves. Baselines are cheap and often sufficient.
  • Label leakage: information from the label in the features (e.g., the answer in the text). Always ask what the model could cheat with.
  • Ignoring class imbalance: 95% accuracy on a 95%-majority class means nothing. Use F1, PR curves, per-class metrics.
  • Over-cleaning: aggressive normalization destroying signal — casing, punctuation, and slang often carry meaning.
  • Topic models without reading: trusting coherence scores over human inspection. Read the top documents per topic.
  • No error analysis: reporting a single metric. The mistakes are where the insight — and the next improvement — lives.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

日本語の概要は準備中です。原文の説明を表示しています。

aicodedecode/awesome-muse-skills132026年10月10日 更新

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

日本語の概要は準備中です。原文の説明を表示しています。

aicodedecode/awesome-muse-skills132026年10月10日 更新

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

日本語の概要は準備中です。原文の説明を表示しています。

aicodedecode/awesome-muse-skills132026年10月10日 更新

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

日本語の概要は準備中です。原文の説明を表示しています。

aicodedecode/awesome-muse-skills132026年10月10日 更新

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

日本語の概要は準備中です。原文の説明を表示しています。

aicodedecode/awesome-muse-skills132026年10月10日 更新

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

日本語の概要は準備中です。原文の説明を表示しています。

aicodedecode/awesome-muse-skills132026年10月10日 更新

aicodedecode のスキルをすべて見る

このスキルの問題を報告する