topicmodels is a package for fitting probabilistic topic models to collections of documents. It provides interfaces to established implementations of latent Dirichlet allocation (LDA) and correlated topic models (CTM).
Topic modelling is used to identify recurring themes in large collections of text without manually assigning a category to every document. A fitted model represents documents as combinations of topics, while each topic is described by a probability distribution over vocabulary terms.
The package accepts document-term matrices and provides methods for fitting models, examining their results and evaluating their performance. It is particularly useful for researchers working with document collections where the underlying thematic structure is not known in advance.
This is free and open source software.
Key Features
- Fits latent Dirichlet allocation (LDA) models to document-term matrices.
- Supports correlated topic models (CTM), allowing dependencies between topics to be represented.
- Provides variational expectation-maximisation methods for estimating topic models.
- Supports Gibbs sampling for LDA estimation.
- Offers configurable model parameters and estimation controls.
- Calculates posterior topic probabilities for documents.
- Provides probability distributions over vocabulary terms for individual topics.
- Identifies the most representative terms associated with each topic.
- Assigns documents to their most probable topics.
- Provides model log-likelihood calculations.
- Supports perplexity calculations for assessing model fit.
- Includes example document collections for testing and demonstrating topic-modelling methods.
- Integrates with document-term matrix representations used by the tm package.
- Provides methods for extracting model results for further statistical analysis and visualisation.
Website: cran.r-project.org
Support:
Developer: Bettina GrĂ¼n and Kurt Hornik
License: GNU General Public License v2.0
topicmodels is written in R. Learn R with our recommended free books and free tutorials.
Related Software
| R Natural Language Processing Tools | |
|---|---|
| tidytext | Text mining using dplyr, ggplot2, and other tidy tools |
| quanteda | R package for Quantitative Analysis of Textual Data |
| text2vec | Framework with API for text analysis and natural language processing |
| tm | Text Mining Infrastructure in R |
| srtringi | Fast and portable character string processing in R |
| Stringr | String manipulation in R |
| UDPipe | Tokenization, Tagging, Lemmatization and Dependency Parsing |
| tokenizers | Convert natural language text into tokens |
| spacyr | R wrapper around the Python spaCy package |
| Word Vectors | Build and explore embedding models |
| syuzhet | Extraction of sentiment and sentiment-based plot arcs from text |
| textTinyR | Text processing for small or big data |
| textrecipes | Prepares text features for machine learning with tidymodels |
| stm | Fits structural topic models to analyse document collections |
| sentimentr | Dictionary based sentiment analysis |
| word2vec | Trains word embedding models and explores semantic relationships |
| textclean | Collection of tools to clean and normalize text |
| TALL | Explore, model, and visualize textual data |
| corpustools | Various tools for analyzing text corpora |
| wordvector | Trains and explores word and document vector representations |
| topicmodels | Interface to LDA and CTM models |
| text | Analyzing natural language with transformers-based large language models |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.