Intermediate level · Module 6 of 8 · 12 guided hours
Topic Modelling and Document Analysis
Discovering themes in large document collections with LDA: preparing counts, fitting and choosing the number of topics, labelling topics from evidence and visualising topics over sources and time.
Learning objectives
- Explain topic modelling and LDA
- Fit, tune and label LDA topics with scikit-learn
- Analyse and visualise topics across documents, sources and time
Topics
- what topic models find
- LDA's documents-topics-words idea
- preparing counts for LDA
- choosing the number of topics
- labelling topics from evidence
- topic trends and visualisation
Lessons
-
Lesson 1 How LDA Discovers Topics
Learners study the idea behind Latent Dirichlet Allocation (documents as mixtures of topics, topics as mixtures of words) and fit a first model.
topicdocument-topic distributiontopic-word distributionLatentDirichletAllocationunsupervised learning
-
Lesson 2 Choosing and Labelling Topics
Learners compare models with different numbers of topics, label topics from top words and representative documents, and identify junk topics.
number of topicsperplexitycoherence (qualitative)representative documentsjunk topics
-
Lesson 3 Topic Trends and Document Analysis
Learners use document-topic mixtures to compare sources and track themes over time, and present topic findings with clear charts and examples.
topic shareaggregation by grouptime trendsstacked bar chartrepresentative quotes
Practical activity
Complete the project's topic analysis: fit and choose an LDA model, label topics with evidence and produce topic trends by source and time.
Expected outcomes
- Ability to discover and explain themes in documents
- Evidence-based topic reporting
Assessment
Topic analysis notebook (60%) and the findings note (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.