topicmodels: An R package for fitting topic models

Publication: Scientific journalJournal articlepeer-review

65 Downloads (Pure)


Topic models allow the probabilistic modeling of term frequency occurrences in documents. The fitted model can be used to estimate the similarity between documents as well as between a set of specified keywords using an additional layer of latent variables which are referred to as topics. The R package topicmodels provides basic infrastructure for fitting topic models based on data structures from the text mining package tm. The package includes interfaces to two algorithms for fitting topic models: the variational expectation-maximization algorithm provided by David M. Blei and co-authors and an algorithm using Gibbs sampling by Xuan-Hieu Phan and co-authors.
Original languageEnglish
Pages (from-to)1 - 30
JournalJournal of Statistical Software
Issue number13
Publication statusPublished - 1 Jun 2011

Cite this