Skip to content
Back to skills

Topic Modeling

ASecurity

Build, fit, query, and mutate BERTopic topic models.

  • 247 stars
  • 0 votes
  • 1 copy
  • 5 views
  • Added September 8, 2026
documentationapibackend

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill topic-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Topic Modeling?

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

Security grade badge for Topic Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-topic-modeling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-topic-modeling)

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: topic-modeling
description: "Build, fit, query, and mutate BERTopic topic models."
metadata:
  disco-role: operating
  package: BERTopic
  package-version: "0.17.4"
  parent-skill: bertopic
disable-model-invocation: true
license: MIT
---

# Topic Modeling

Use this sub-skill for BERTopic lifecycle work when the task is about building or changing a topic model rather than choosing embeddings, tuning c-TF-IDF/vectorizers, labeling topics, plotting, or saving models.

## Covered workflows

- Construct BERTopic with default or custom reducer/cluster components.
- Fit, `fit_transform`, `transform`, and `partial_fit` on documents, precomputed embeddings, or image-aligned inputs.
- Run guided, supervised, semi-supervised, manual, zero-shot, online, and multimodal fitting variants.
- Query topics, frequencies, documents, representative docs, and topic search results.
- Reduce, merge, delete, and outlier-correct topics.
- Merge multiple fitted models.
- Inspect parameter state with `get_params`.

## Not covered here

- Embedding backend selection or download troubleshooting.
- c-TF-IDF/vectorizer tuning, seed-word weighting, or online vocabulary tuning details.
- Topic representation and labeling models.
- Visualizations, comparison plots, or downstream analysis.
- Save/load, hub publishing, or other serialization paths.

## Working notes

- `fit` / `fit_transform` accept `documents`, optional `embeddings`, optional `images`, and optional `y`.
- `partial_fit` is the streaming path; use a reducer and clusterer that support `partial_fit`.
- `transform` only works on fitted models with an inference-capable cluster path.
- `find_topics` needs a live `embedding_model`; if you only have precomputed embeddings, provide a local offline embedder or route the request elsewhere.
- `reduce_outliers` returns a new topic list; if you need refreshed representations afterward, hand that job to the vectorizer/representation sub-skill.
- `merge_topics`, `delete_topics`, and `reduce_topics` mutate the fitted model in place and update `topic_mapper_`.
- `partial_fit` tracks the current batch in `topics_`; keep your own history if you need a cumulative stream view.
- `images` are supported for fit-time and transform-time multimodal workflows; `partial_fit` does not take images.

## References

- `references/api-reference.md`
- `references/workflows.md`
- `references/troubleshooting.md`
- `scripts/smoke_topic_model.py`

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md7.1 KB
  • references/troubleshooting.md4.6 KB
  • references/workflows.md6 KB
  • scripts/smoke_topic_model.py7.8 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.