How himathx/lk-hansard-topic-modeling works
LK Hansard Topic Modeling is a research workflow for turning Sri Lankan parliamentary Hansard text into speech-level records, multilingual embeddings, micro-topics, and 30 macro-topics, then evaluating and publishing the results. The README documents the main stage sequence and major capabilities; modeling and publishing implementations are not present in the supplied tree, so those nodes use only the existing modeling directory or a null path. Edges reflect documented workflow or visible calls; unsampled implementation details are not inferred.
Main entry points: run_evaluation.py Evaluation runner · final_v14 Topic assignments · build_speech_corpus.py Speech corpus builder · modeling Multilingual embeddings
Components 18
Corpus ingestion
- Hansard downloader
src/ingestion/hansard_download.py - Hansard Markdown
data/extracted-markdown - Speech corpus builder
src/ingestion/build_speech_corpus.py - Speech-level corpus
artifacts/final_v14
Topic modeling
- Multilingual embeddings
src/modeling - Micro-topic discovery
src/modeling - Macro-topic aggregation
src/modeling - Topic assignments
artifacts/final_v14
Evaluation
- Gold evaluation labels
data/evaluation - Classification metrics
src/evaluation/classification_metrics.py - Topic quality metrics
src/evaluation/topic_quality_metrics.py - Evaluation runner
src/evaluation/run_evaluation.py - Extraction audit
src/evaluation/extraction_audit.py - Evaluation results
artifacts/evaluation
Publication
- Hugging Face dataset
- Interactive dashboard
Other components
- Hansard source
- Researchers and reviewers
Connections 17
- Hansard source → Hansard downloader: provides PDFs
src/ingestion/hansard_download.py - Hansard Markdown → Speech corpus builder: extracts speeches
README.md - Speech corpus builder → Speech-level corpus: builds corpus
README.md - Speech-level corpus → Multilingual embeddings: generates embeddings
README.md - Multilingual embeddings → Micro-topic discovery: discovers topics
README.md - Micro-topic discovery → Macro-topic aggregation: aggregates topics
README.md - Macro-topic aggregation → Topic assignments: produces assignments
README.md - Gold evaluation labels → Evaluation runner: supplies labels
src/evaluation/run_evaluation.py - Topic assignments → Evaluation runner: supplies assignments
src/evaluation/run_evaluation.py - Evaluation runner → Classification metrics: calls metrics
src/evaluation/run_evaluation.py - Evaluation runner → Topic quality metrics: calls metrics
src/evaluation/run_evaluation.py - Evaluation runner → Evaluation results: writes reports
src/evaluation/run_evaluation.py - Researchers and reviewers → Extraction audit: audits extraction
README.md - Topic assignments → Hugging Face dataset: publishes dataset
README.md - Topic assignments → Interactive dashboard: supports dashboard
README.md - Hugging Face dataset → Researchers and reviewers: serves dataset
README.md - Interactive dashboard → Researchers and reviewers: presents results
README.md