How lucasrss27/dtm-pir_insa_toulouse_4agmm works
This is a Dynamic Topic Modeling analytics app: users upload a time-stamped text CSV, configure filtering and model settings, train a temporal topic model, and explore topic evolution, word trends, and training diagnostics. The main stages are corpus preparation, differentiable model training with temporal smoothing, and interactive visualization. The repository also contains a New York Times archive collection script and a sample corpus. Some dashboard internals and core routines were not fully excerpted, so only documented or visible relationships are shown.
Main entry points: DTM_dash.py Dashboard app · NYT_Scrapping.py NYT archive scraper · dtm_core.py Temporal topic model · nyt_articles_2019_2021.csv NYT sample corpus
Components 10
Interactive dashboard
- Dashboard app
DTM_dash.py - Trend and diagnostics views
DTM_dash.py
Corpus and modeling
- Corpus preparation
dtm_core.py - Temporal topic model
dtm_core.py - Kalman smoothing
dtm_core.py
Corpus sources
- NYT archive scraper
DataSet/NYT_Scrapping.py - NYT sample corpus
DataSet/nyt_articles_2019_2021.csv - Europress sample corpus
DataSet/Europress_Nestle.csv
Other components
- Analyst
- NYT archive API
Connections 8
- Analyst → Dashboard app: uploads CSV
README.md - Dashboard app → Corpus preparation: prepares corpus
DTM_dash.py - Dashboard app → Temporal topic model: trains model
DTM_dash.py - Temporal topic model → Kalman smoothing: smooths trajectories
dtm_core.py - Dashboard app → Kalman smoothing: gets proportions
DTM_dash.py - Dashboard app → Trend and diagnostics views: renders results
DTM_dash.py - NYT archive scraper → NYT archive API: fetches archives
DataSet/NYT_Scrapping.py - NYT archive scraper → NYT sample corpus: writes corpus
DataSet/NYT_Scrapping.py