Skip to main content

A package for creating temporal embeddings with a compass

Project description

Visualizing Temporal Topic Embeddings with a Compass

This package is a rewritten fork of the original CADE package, which generates Temporal Word Embeddings with a Compass (TWEC). It expands on the original paper by creating the concept of Temporal Document Embeddings with a Compass (TDEC) and then generalizes to a topic space through Temporal Topic Embeddings with a Compass (TTEC). It takes advantage of CADE's idea of creating a general, atemporal model (either word2vec or doc2vec) and freezing the hidden weights of that model (the "target embedding") to then be used to train individual time slices. This results in alignment across time slices because similar outputs would require similar input word/document vectors. As a result, words, documents, and topics can be compared across time slices using this alignment method.

Installation

As with the original implementation of CADE, this package also takes advantage of a custom implementation of gensim. The original custom implementation added the ability to freeze the word vector hidden layer to Word2vec. This additional edit extends the freezing ability to Doc2vec:

pip install -U temporal-embeddings-compass
pip install git+https://github.com/danilka4/gensim.git

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_embeddings_compass-0.4.3.tar.gz (32.6 MB view details)

Uploaded Source

Built Distribution

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

temporal_embeddings_compass-0.4.3-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file temporal_embeddings_compass-0.4.3.tar.gz.

File metadata

File hashes

Hashes for temporal_embeddings_compass-0.4.3.tar.gz
Algorithm Hash digest
SHA256 f83a4fa6b993d56ba6f45d4fb6600c49a54648c59ee7c4f0e2fe824c271a08a8
MD5 4b5dc17164a110b20b78158de3d2f9c5
BLAKE2b-256 e7ab89ae0002d80933abb42de8baec4be604937dd5a0f147b72b7da11ab5f2bb

See more details on using hashes here.

File details

Details for the file temporal_embeddings_compass-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for temporal_embeddings_compass-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7041ad0065326b1f8358a7f241203117b756e0abe4dffea65bf341ddcac30ab5
MD5 403003553fb8adbdfc6bd8b9a4b8bbe1
BLAKE2b-256 05b73313bd5f77172bc7666eb69bd7ace9f11d8ed1ab058e7a66b2c242e66db3

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