Skip to main content

Implementation of density-based Mapper for temporal topic modelling.

Project description

Temporal Mapper Logo

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.Mapper implementing density-based Mapper.
  • A much messier wrapper class temporalmapper.TemporalMapper that 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

temporal_mapper-1.3.0.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

temporal_mapper-1.3.0-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

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

Hashes for temporal_mapper-1.3.0.tar.gz
Algorithm Hash digest
SHA256 bf1c41a9b0d1d4643b72a5c32eeebd4b0520d40a371ab79afb1a0afa1e169f1f
MD5 00e031320debce85ee628c4cafc3655c
BLAKE2b-256 dc4788b08106bbac7ca9eb65192746297c6ae0a3f35e55162dc7320facb5c455

See more details on using hashes here.

File details

Details for the file temporal_mapper-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for temporal_mapper-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d721133d0a6b8b61e4fb68e0a053b70feef62ac6ccb1f7c45e6f78ab92a0708
MD5 cac09f5af85a19f3ed80d99253a4644e
BLAKE2b-256 76d49af3c56f35a662c711d231f1e58a9ef3ff97831e1b4bcd1f97408d217b1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page