Skip to content
Back to skills

Text Clustering Eval

ASecurity

Evaluates the ability of centroid-based clustering algorithms to group unlabeled text documents into semantically coherent clusters. It measures clustering accuracy, label alignment with ground truth, and how closely learned centroids match true cluster centers. Use when the user wants to benchmark on Bank77, CLINC, GoEmo, MASSIVE, StackExchange, or asks about evaluating this task. Reports ACC, NMI.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
researchpythongo

Works with

  • cli

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill text-clustering-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Text Clustering Eval?

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

Security grade badge for Text Clustering Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-text-clustering-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-text-clustering-eval)

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: text-clustering-eval
description: Evaluates the ability of centroid-based clustering algorithms to group unlabeled text documents into semantically coherent clusters. It measures clustering accuracy, label alignment with ground truth, and how closely learned centroids match true cluster centers. Use when the user wants to benchmark on Bank77, CLINC, GoEmo, MASSIVE, StackExchange, or asks about evaluating this task. Reports ACC, NMI.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2502.09667
  bibtex_key: [REDACTED]
  confidence: high
---

# text-clustering-eval

> Summaries as Centroids for Interpretable and Scalable Text Clustering — Diaz-Rodriguez et al. (2025) (arXiv:2502.09667, 2025)

## What this evaluates

Evaluates the ability of centroid-based clustering algorithms to group unlabeled text documents into semantically coherent clusters. It measures clustering accuracy, label alignment with ground truth, and how closely learned centroids match true cluster centers.

## Datasets

- **Bank77** — total ?; splits: test (-1)
- **CLINC** — total ?; splits: test (-1)
- **GoEmo** — total ?; splits: test (-1)
- **MASSIVE** — total ?; splits: test (-1)
- **StackExchange** — total ?; splits: 2020 (69147), 2021 (54322), 2022 (43521), 2023 (38953)

## Metrics

- `ACC` **(primary)** — range: percent
  - Accuracy of cluster assignments mapped to ground-truth labels via optimal permutation. Reported as a percentage.
- `NMI` **(primary)** — range: percent
  - Normalized Mutual Information measuring the mutual dependence between predicted clusters and ground-truth labels, normalized by the average entropy of both distributions. Reported as a percentage.
- `dist` — range: other
  - Average Euclidean distance between the algorithm's learned centroids and the ground-truth centroids across all clusters.

## Input / output format

**Input**: Unlabeled text documents or queries to be clustered.

**Output**: Cluster assignment label for each input document.

## Scoring recipe

```python
def compute_metrics(predictions, gold, centroids_pred, centroids_true):
    acc = max(permutation_accuracy(predictions, gold)) * 100
    nmi = normalized_mutual_information(predictions, gold) * 100
    dist = np.mean([np.linalg.norm(c_p - c_t) for c_p, c_t in zip(centroids_pred, centroids_true)])
    return acc, nmi, dist
```

## Common pitfalls

- Uses ground-truth number of clusters (k) for all methods, which is unrealistic for standard unsupervised settings.
- Embedding model choice significantly impacts ACC/NMI scores; results are not directly comparable across different embedding backbones.
- LLM-based variants use a fixed budget of prompts per iteration, independent of dataset size, unlike other LLM clustering methods.

## Evidence (verbatim from paper)

> Table 1 reports mean accuracy (ACC) and normalized mutual information (NMI) for multiple k-NLPmeans and k-LLMmeans variants... The dist metric directly gauges how closely each algorithm recovers the true centroids, an especially meaningful criterion for centroid-based methods.

## Citation

```bibtex
@misc{diazrodriguez2025summaries,
  title={Summaries as Centroids for Interpretable and Scalable Text Clustering},
  author={Diaz-Rodriguez et al. (2025)},
  year={2025},
  note={arXiv:2502.09667}
}
```

- arXiv: 2502.09667

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.