Workshop: Intro to topic modeling using Python
summary
Uses Python with spaCy preprocessing, scikit-learn vectorizers and K‑Means, and gensim LDA on a 3% Yelp sample (~31,500 reviews). K‑Means on 1,000-term TF‑IDF vectors runs in minutes, yields five initial clusters but a silhouette peak at 20 clusters, with one cluster dominating >50% of documents. Gensim LDA returns topic–word probabilities, finds LDA coherence favors 5 topics, reports 37 distinct top words (vs 28 for K‑Means) and 21 words in common; PCA plots show partial separability.
AI-written summary · about
chapters (16)
- 0:00Start
- 5:07What Is Topic Model
- 7:43Topic Modeling
- 8:13Generative Model of Topic Modeling
- 11:34Tokenization
- 17:09Sparse Matrix
- 17:34Measure Similarity
- 18:14Apply K-Means Clustering
- 21:55Word Counts
- 29:19K-Means Clustering Method
- 30:32Mean Nearest Cluster Distance
- 30:54Silhouette Coefficient
- 38:43Training Process
- 51:34Identify the Actual Language of a Review
- 54:14Word Frequencies
- 55:04Common Top Words
related talks
48mTopic Modelling (and more) with NLP framework Gensim
01h 31mModern NLP in Python
45mDecoding Topics: A Comparative Analysis of Python’s Leading Topic Modeling Libraries Using Climate C
45mEvaluating Topic Models
02h 19mWorkshop: Demystifying Natural Language Processing using Python (Scikit-Learn/ Keras)
49mTopic Modeling: A Provable Spectral Method
01h 19mGenerating Customers Insights with Topic Modelling and HuggingFace SetFit Method
35mAnalyzing Public Conversation using LDA and Topic Modeling, in Python
