login

topicmodels: An R Package for Fitting Topic Models

Published 1 January 2011Open access
Bettina Grün, Hornik, Kurt
Citations341
View PDF

Abstract

This article is a (slightly) modified and shortened version of Grün and Hornik (2011), published in the Journal of Statistical Software. 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:˜Gibbs sampling, R, text analysis, topic model, variational EM. 1.

Keywords

Social SciencesComputer Science