login

<b>topicmodels</b>: An<i>R</i>Package for Fitting Topic Models

Journal of Statistical SoftwarePublished 1 January 2011Open access
Bettina Grün, Kurt Hornik
Citations1,088
SJR quartileQ1
SJR score3.21
SNIP4.61
View PDF

TL;DR

The R package topicmodels provides basic infrastructure for fitting topic models based on data structures from the text mining package tm to estimate the similarity between documents as well as between a set of specified keywords using an additional layer of latent variables.

Abstract

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.

Keywords

Computer ScienceSocial Sciences