Topic Modeling in Your Browser

jsLDA

1 Choose your texts

Choose a folder of plain-text (.txt) files, or a single file with one document per line.

Your files stay on this computer. Nothing is uploaded; the model runs inside this browser tab.

Options
words Topic models work best on passages of a few hundred words. 0 keeps each file whole.
Stopwords (common words to ignore): common English words A plain-text file with one word per line. You can also remove words later in the Vocabulary tab.

2 Find topics

25
Choose texts first.

Training starts as soon as your texts are loaded. Watch the topics on the left sharpen as the model makes more passes through the texts.

How it works

What is topic modeling?

A topic model finds groups of words that tend to appear together in the same documents. Each group is a “topic”. Every document is described as a mix of topics. This page uses latent Dirichlet allocation (LDA), trained by Gibbs sampling: it starts with every word in a random topic, then repeatedly revisits each word and reassigns it based on the other words around it.

Preparing your texts

Reading the results

Topics are listed by their top words, most common first. Click a topic to see the documents that use it most. If a topic is full of uninteresting words, remove them in the Vocabulary tab; training continues without them. Try a few different numbers of topics: there is no single right answer.

Privacy

Everything runs in this browser tab. Your files are read by the page but never sent anywhere, and closing the tab discards them. Save anything you want to keep from the Save results tab.

By David Mimno. For larger collections, try the Topic Modeling Tool, an installable program built on MALLET.