Glossary

Topic Modeling

Finding patterns of co-occurring words or document representations that can suggest themes in a collection.


“Bank,” “water” and “project” rise to the top of a topic. River restoration sounds like a reasonable name. Then you open the documents and discover a regional bank funding municipal water projects.

Give a topic a name its documents support

Read several central documents and a few from the margins before naming the topic. Save a passage that fits your interpretation and one that makes you hesitate. A good label has to explain both.

Try removing a repeated form header or looking at another time period. If the topic vanishes with the letterhead, you’ve learned something about the archive’s paperwork. That can be interesting too, as long as the name on the figure says so.

Topic models group or represent documents through patterns in text. The choice of corpus, preprocessing, method and number of topics affects what emerges. Assigning a substantive name is an interpretive step that benefits from reading the underlying documents.

Latent Dirichlet allocation describes documents as mixtures of topics and topics as patterns of word use. Embedding-based tools such as BERTopic group document representations and identify terms that help characterize the groups. Each approach can yield a readable list of words, but the lists come from different modelling choices. BERTopic documentation

For a survey, try changing the unit from a full response to an individual comment. A respondent discussing both the cost and reliability of a bus may contribute two different themes. Then inspect whether the model grouped complaints by substance or merely by the language of the questionnaire.

Report the collection, preprocessing, number or structure of topics, and how people assigned names. A coherent label is a hypothesis about a group of documents. A few representative and troublesome passages let readers decide whether your name fits.

Related terms: Structured Data Extraction

Related guide: Social Science