Implementation of density-based Mapper for temporal topic modelling.
Project description
Temporal Mapper
V.1.2.1 - March 03 2026
This is a library for using the Mapper for temporal topic modelling. The primary components are:
- A scikit-learn compliant Mapper class
temporalmapper.Mapperimplementing density-based Mapper. - A much messier wrapper class
temporalmapper.TemporalMapperthat computes additional data useful for temporal topic modelling. - Interactive and static plotting functions such as
TemporalMapper.temporal_plot.
Direct questions to Kaleb D. Ruscitti: kaleb.ruscitti at uwaterloo.ca .
Complete documentation is under construction on Read The Docs.
Example:
United Nations General Debate Corpus
The United Nations General Debate Corpus
contains transcripts of the United Nations General Debates from 1970-2014. We can chunk and embed these transcripts
using SBERT and produce a topic model of the dataset using Toponymy.
Then using this repository, we can model the changes in the topics over time, producing a graph whose nodes are topics at a given time:
Installation
Install from PyPI:
pip install temporal-mapper
Or, clone the repo and install:
git clone https://github.com/TutteInstitute/temporal-mapper.git
cd temporal-mapper && pip install .
Development Instructions
Getting set up
(Mostly for my future self...)
Clone the repo:
git clone https://github.com/TutteInstitute/temporal-mapper.git
Then make a virtual environment and install the package and pytest.
cd temporal-mapper && python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt && pip install -e .
Before making any changes, check that the tests run successfully:
cd tests && python -m pytest mapper.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file temporal_mapper-1.3.0.tar.gz.
File metadata
- Download URL: temporal_mapper-1.3.0.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf1c41a9b0d1d4643b72a5c32eeebd4b0520d40a371ab79afb1a0afa1e169f1f
|
|
| MD5 |
00e031320debce85ee628c4cafc3655c
|
|
| BLAKE2b-256 |
dc4788b08106bbac7ca9eb65192746297c6ae0a3f35e55162dc7320facb5c455
|
File details
Details for the file temporal_mapper-1.3.0-py3-none-any.whl.
File metadata
- Download URL: temporal_mapper-1.3.0-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d721133d0a6b8b61e4fb68e0a053b70feef62ac6ccb1f7c45e6f78ab92a0708
|
|
| MD5 |
cac09f5af85a19f3ed80d99253a4644e
|
|
| BLAKE2b-256 |
76d49af3c56f35a662c711d231f1e58a9ef3ff97831e1b4bcd1f97408d217b1f
|