MilaNLProc/contextualized-topic-models
A python package to run contextualized topic modeling. CTMs combine contextualized embeddings (e.g., BERT) with topic models to get coherent topics. Published at EACL and ACL 2021 (Bianchi et al.). observed · 2026-08-28
Health v2 · maintenance only
47/100
- Activity 33
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2342
- days_rel: n/a
- days_push: 406
- n_releases_24m: 0
Adoption not part of the score
1269 stars · 155 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library implementing Contextualized Topic Models (CTM), which combine pre-trained contextual embeddings like BERT with neural topic models to produce more coherent topics. It offers CombinedTM (embeddings plus bag-of-words) and ZeroShotTM (works with missing words and supports multilingual, zero-shot topic modeling).
Use cases
- discover topics in a large document corpus
- run multilingual topic modeling without translating text
- improve topic coherence over LDA with BERT embeddings
- do zero-shot topic modeling on unseen languages
- analyze survey responses or news articles by theme
- cluster documents into interpretable topics
When to choose
- you need coherent, interpretable topics from text documents
- you want to leverage transformer embeddings for topic modeling
- you need multilingual or zero-shot topic modeling
- you want a pip-installable, research-backed topic modeling library
When to avoid
- you need simple keyword extraction rather than full topic models
- you lack a GPU or patience for training neural models
- you need production-scale low-latency inference
- you want a fully classical statistical topic model like LDA
Facets
library · maturity active
nlp machine-learning search-engine machine-learning data-science python topic-modeling bert embeddings neural-topic-models multilingual zero-shot text-analysis natural-language-processing
2 sources
- readme: https://github.com/MilaNLProc/contextualized-topic-models · fetched 2026-08-28 · 3d5022dcb298
- registry_pypi: https://pypi.org/pypi/contextualized-topic-models/json · fetched 2026-08-29 · f07fb2f8c14d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MilaNLProc/contextualized-topic-models | main | 47 |
For agents
markdown · JSON · MCP: product_card(name="MilaNLProc/contextualized-topic-models")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem