BERTopic is a Python package for topic modeling that uses transformer-based embeddings and class-based TF-IDF to create dense document clusters with interpretable topic descriptions.
It’s designed for extracting themes from collections of text documents, while offering flexible configuration for embeddings, dimensionality reduction, clustering, tokenization, topic weighting, and representation models.
This is free and open source software.
Key Features
- Supports guided, supervised, semi-supervised, manual, hierarchical, dynamic, online, multimodal, zero-shot, and class-based topic modeling.
- Provides methods to fit models, transform new documents, inspect topics, retrieve representative documents, merge topics, reduce topics, and reduce outliers.
- Includes visualization tools for topics, documents, hierarchies, heatmaps, term scores, topic distributions, and topics over time.
- Offers modular components for embeddings, dimensionality reduction, clustering, vectorization, weighting, and topic representation.
- Supports custom topic representations, including KeyBERT-inspired representations and LLM-based labels or summaries.
- Can be installed with optional backends for Flair, Gensim, spaCy, TensorFlow USE, fastembed, and vision-based workflows.
Website: github.com/MaartenGr/BERTopic
Support:
Developer: Maarten P. Grootendorst
License: MIT License
BERTopic is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Python Natural Language Processing Tools | |
|---|---|
| PyTorch-Transformers | Library of state-of-the-art pre-trained models for NLP |
| NLTK | Natural Language Toolkit |
| spaCy | Industrial strength natural language processing |
| scikit-learn | Machine learning library |
| Haystack | AI orchestration framework |
| Gensim | Vector space modeling and topic modeling toolkit |
| flair | Simple framework for state-of-the-art NLP |
| TextBlob | Python (2 and 3) library for processing textual data |
| doccano | Data labelling and text annotation platform |
| BERTopic | Topic modeling |
| textacy | Python library for performing NLP tasks |
| Presidio | Data protection and de-identification SDK |
| polyglot | Multilingual text (NLP) processing toolkit |
| AllenNLP | Apache 2.0 NLP research library |
| Snips NLU | Natural Language Understanding Python library |
| PyNLPI | Various modules useful for common, and less common, NLP tasks |
| nlpnet | Natural Language Processing with neural networks |
| Pattern | Web mining module |
| GluonNLP | Deep Learning for NLP |
| PyTorch-NLP | Neural network layers, text processing modules and datasets |
| NLP Architect | Deep Learning NLP/NLU library |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.