For a library for topic modeling, the strongest matches are rare-technologies/gensim (Gensim is a mature Python NLP toolkit built specifically), maartengr/bertopic (BERTopic is a topic modeling library that uses embedding-based) and lda-project/lda (The lda library implements LDA topic modeling via Gibbs). milanlproc/contextualized-topic-models and vowpalwabbit/vowpal_wabbit round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Discover open-source libraries and algorithms for extracting thematic structures and grouping large-scale text document collections.
Gensim is an unsupervised natural language processing toolkit designed for topic modeling, word embedding training, and the processing of large-scale text corpora. It provides a framework for discovering latent themes and semantic structures in text without the need for labeled data. The toolkit is distinguished by its ability to handle datasets that exceed system memory through iterator-based data streaming from disk. It also supports distributed model training, allowing complex modeling tasks to be executed across computer clusters. The library covers a broad range of analysis capabilities
Gensim is a mature Python NLP toolkit built specifically for topic modeling on large text corpora, offering LDA and NMF implementations, built-in topic coherence evaluation, and scalable streaming—so it directly meets your requirements.
BERTopic is a topic modeling library used to extract interpretable themes from collections of text documents and images. It functions as a document clustering framework that transforms unstructured data into numerical vectors to group semantically similar content. The project distinguishes itself through a multimodal embedding tool that allows for joint clustering of text and images in a shared vector space. It also features a class-based TF-IDF representation engine to identify representative words for clusters and an integrated system for using large language models to generate natural lang
BERTopic is a topic modeling library that uses embedding-based clustering and class-based TF-IDF instead of the LDA or NMF algorithms you requested, but it is a full-fledged Python library with visualization tools and topic coherence evaluation, fitting the topic modeling category.
This project is a statistical library and computational framework designed for topic modeling within large document collections. It functions as a natural language processing toolkit that identifies hidden thematic structures by analyzing word frequency patterns across unstructured text data. The library employs Latent Dirichlet Allocation to model documents as mixtures of topics and topics as mixtures of words. It utilizes Gibbs sampling and iterative state-space updating to estimate the posterior distribution of latent variables, refining topic assignments until the model reaches statistica
The lda library implements LDA topic modeling via Gibbs sampling in Python, providing the core capability requested, but it lacks NMF, topic coherence evaluation, and built-in visualization, so it is a solid but narrower fit.
Contextualized topic modeling is a framework that integrates deep learning architectures with statistical word frequency distributions to extract coherent themes from large document collections. By combining pre-trained transformer-based embeddings with variational inference, the system identifies hidden patterns in text while maintaining the interpretability of traditional generative models. The library distinguishes itself by mapping diverse languages into a shared semantic space, enabling topic discovery and classification across multilingual datasets without requiring language-specific tr
Contextualized Topic Models is a Python library for neural topic modeling using BERT embeddings, which squarely fits the category of topic modeling libraries but uses modern contextualized approaches rather than traditional LDA or NMF—it supports topic coherence and is Python-based, though it may not include built-in visualization or explicit large-corpus scalability.
Vowpal Wabbit is an open-source machine learning system designed for online learning, where models update incrementally from streaming data without requiring full retraining. It provides a reduction-based learning framework that composes complex tasks from simpler algorithms, and includes a feature hashing trick that maps unbounded feature names into a fixed-size vector space to keep memory usage constant regardless of dataset size. The system supports distributed training across a cluster using an allreduce protocol for synchronized updates, and offers an active learning query strategy that s
Vowpal Wabbit is an online machine learning system that includes LDA support, but it's a general-purpose reduction-based framework for streaming and bandit learning — not a dedicated topic modeling library with NMF, coherence evaluation, or visualization, so it misses the core focus of this search.
River is a Python framework for online machine learning, designed to train and evaluate models on streaming data. It enables incremental learning by updating model parameters one observation at a time, eliminating the need to store full training datasets in memory. The library distinguishes itself through a dedicated concept drift detection system that monitors changes in data distributions to trigger model adaptation. It also provides a progressive validation framework that simulates real-time deployment by testing models on samples before using them for training. The system covers a broad
River is a framework for online machine learning on streaming data, but it does not provide topic modeling algorithms like LDA or NMF for clustering documents into topics.
This project is a machine learning implementation library featuring a collection of code examples that implement supervised, unsupervised, and reinforcement learning algorithms from scratch. It provides a comprehensive set of toolkits for core machine learning components, including a natural language processing toolkit, a reinforcement learning framework, and suites for data dimensionality reduction and pattern mining. The library includes specialized implementations for reinforcement learning, such as Q-Learning, Deep Q-Networks, and Actor-Critic agents. The natural language processing capab
This repository is an educational collection of machine learning algorithm implementations with some topic modeling content, but it is not a dedicated, scalable topic modeling library with coherence evaluation or visualization tools as the search requires.
cuml is a GPU-accelerated machine learning library and framework that uses CUDA to accelerate tabular data preprocessing and model execution. It provides a suite of tools for training and deploying classification, regression, and clustering models on NVIDIA GPUs and GPU clusters. The library is designed for scalability, offering a distributed GPU machine learning environment that can spread computation and data across multiple hardware accelerators and nodes to handle datasets exceeding single-device memory. It mirrors standard estimator interfaces to allow the replacement of CPU-based models
cuML is a general GPU-accelerated machine learning library for tabular data and traditional ML tasks, not a specialized topic modeling library; its description lacks any mention of LDA, NMF, or topic coherence, so it does not squarely fit the search for a dedicated topic modeling toolkit.