Skip to main content

Skip-Grammar

A framework for representing sequences as embeddings.

Models

Skip-gram Negative Sampling (SGNS)

Popular natural language processing models such as word2vec and bert can be repurposed to learn relationships from arbitrary sequences of items. Skip-gram Negative Sampling is such an algorithm part of the models module. This is implemented in PyTorch components or can be composed as a PyTorch Lightning module. Both are availble under the relevent namespaces skipgrammar.models.sgns and skipgrammar.models.lighting.sgns.

Datasets

Last.FM

The Last.FM Dataset-1K dataset is comprised of the listening history of approximately 1,000 users from the music service Last.FM. The dataset is availble at the project's main site here and also preprocessed here for ease of use. The variants in the dataset module use the latter.

MovieLens

The popular recommendation system dataset MovieLens is availble in three variants via the dataset module.

Metadata

Release files for skipgrammar 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skipgrammar 0.1.3
File Size Uploaded
skipgrammar-0.1.3.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skipgrammar 0.1.3
File Interpreter ABI Platform
skipgrammar-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.9 kB

Release files / skipgrammar-0.1.3.tar.gz

Download URL skipgrammar-0.1.3.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ffb11c845f3eee125d7ef9826b60a51bc1ef1615d4a1c16264402caa062d43ab
BLAKE2b-256 checksum
How to use checksums
2a95e9574dc504f73664ca0de4242807c627cd3b880c888ee90f5b3a80cdd6d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Darwin/21.5.0

Release files / skipgrammar-0.1.3-py3-none-any.whl

Download URL skipgrammar-0.1.3-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f84faf301714b21571a8b8512ad07c6d13a5c48ad356450f0765b888e0e1d7f
BLAKE2b-256 checksum
How to use checksums
1315acba503691b5a29f1d9e98ed9e0de1d54bfbdb9684411563e6295438f613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page