Topic Modeling

Latent Dirichlet Allocation you own this product

This project is part of the liveProject series Traditional and Neural Topic Modeling
intermediate Python • linear algebra • probability • basics of machine learning
skills learned
implementing a simplified version of the LDA algorithm • preprocessing and converting a text corpus into a document-to-word matrix • generating topics using Gensim’s LDA algorithm • evaluating generated topics using Coherence and Diversity metrics • visualizing derived topics with a variety of techniques
Aneesha Bakharia
1 week · 6-8 hours per week · INTERMEDIATE
filed under

placing your order...

Don't refresh or navigate away from the page.
liveProject This project is part of the liveProject series Traditional and Neural Topic Modeling liveProjects give you the opportunity to learn new skills by completing real-world challenges in your local development environment. Solve practical problems, write working code, and analyze real data—with liveProject, you learn by doing. These self-paced projects also come with full liveBook access to select books for 90 days plus permanent access to other select Manning products. $19.99 $29.99 you save $10 (33%)
Latent Dirichlet Allocation (liveProject) added to cart
continue shopping
adding to cart

Look inside

In this liveProject, you’ll use the latent dirichlet allocation (LDA) algorithm from the Gensim library to model topics from a magazine’s article back catalog. Thanks to your work on topic modeling, the new Policy and Ethics editor will be better equipped to strategically commission new articles for under-represented topics. You’ll build your text preprocessing pipeline, use topic coherence to find the number of topics, and visualize and curate the algorithm’s output for your stakeholders to easily read.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Aneesha Bakharia
Aneesha Bakharia completed her PhD in interactive topic modeling at Queensland University of Technology in Australia. She is currently the Manager of Learning Analytics at The University of Queensland where she leads a team of programmers and data scientists. She has written 10 books on programming and web development for Cengage publishing. She also blogs about data science related topics, including topic modeling and she publishes academic peer reviewed publications on educational technologies and learning analytics.


This liveProject is for data scientists and programmers who are confident programming with Python and the Python data ecosystem. To begin this liveProject you will need to be familiar with the following:

  • Intermediate Python
  • Basics of Jupyter Notebook
  • Linear algebra
  • Referencing Matrix cells by row and column index
  • Matrix subtraction, multiplication, and division
  • Basic probability
  • Basics of machine learning

you will learn

In this liveProject, you’ll master topic modeling—an amazing skill for quickly analyzing textual datasets. You’ll learn to apply the LDA topic modeling algorithm in a real-world setting:

  • Implementing a simplified version of the LDA algorithm
  • Preprocessing text documents using the spaCy library with stop word removal, tokenization and lemmatization
  • Converting a text corpus into a document-to-word matrix
  • Using Topic Coherence metrics
  • Visualizing derived topics with a variety of techniques


You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.