Learn R Programming

lda (version 1.1)

lda-package: Collapsed Gibbs Samplers and Related Utility Functions for LDA-type Models

Description

This package contains functions to read in text corpora, fit LDA-type models to them, and use the fitted models to explore the data and make predictions.

Arguments

Details

ll{ Package: lda Type: Package Version: 1.1 Date: 2009-09-12 License: BSD LazyLoad: yes }

References

Blei, David M. and Ng, Andrew and Jordan, Michael. Latent Dirichlet allocation. Journal of Machine Learning Research, 2003.

See Also

Functions to fit models: lda.collapsed.gibbs.sampler slda.em mmsb.collapsed.gibbs.sampler nubbi.collapsed.gibbs.sampler

Functions to read/create corpora: lexicalize read.documents read.vocab

Functions to manipulate corpora: merge.documents filter.words shift.word.indices links.as.edgelist

Functions to compute summary statistics on corpora: word.counts document.lengths

Functions which use the output of fitted models: predictive.distribution top.topic.words top.topic.documents predictive.link.probability

Included data sets: cora poliblog sampson

Examples

Run this code
## See demos for the following three common use cases:

demo(lda)

demo(slda)

demo(mmsb)

Run the code above in your browser using DataLab