Latent Dirichlet allocation

This is a C implementation of variational EM for latent Dirichlet allocation (LDA), a topic model for text or other discrete data. LDA allows you to analyze of corpus, and extract the topics that combined to form its documents. For example, click here to see the topics estimated from a small corpus of Associated Press documents. LDA is fully described in Blei et al. (2003) .

This code contains:


Download the readme.txt .

Download the code: lda-c.tgz .

Sample data

2246 documents from the Associated Press [ download ].

Top 20 words from 100 topics estimated from the AP corpus [pdf].

Bug fixes and updates

To learn about bug-fixes, updates, and discuss LDA and related techniques, please join the topic-models mailing list, topic-models [at]

To join, click here .

Other implementations on the web

There are several other implementations of LDA on the web: