Skip to main content

A framework for representing sequences as embeddings.

Project description

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.

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

skipgrammar-0.1.3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

skipgrammar-0.1.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file skipgrammar-0.1.3.tar.gz.

File metadata

  • Download URL: skipgrammar-0.1.3.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Darwin/21.5.0

File hashes

Hashes for skipgrammar-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ffb11c845f3eee125d7ef9826b60a51bc1ef1615d4a1c16264402caa062d43ab
MD5 65bee3b9da0a69b5a7676201b0d4f2eb
BLAKE2b-256 2a95e9574dc504f73664ca0de4242807c627cd3b880c888ee90f5b3a80cdd6d3

See more details on using hashes here.

File details

Details for the file skipgrammar-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: skipgrammar-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Darwin/21.5.0

File hashes

Hashes for skipgrammar-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f84faf301714b21571a8b8512ad07c6d13a5c48ad356450f0765b888e0e1d7f
MD5 8346009abbf84d34062fa757019d3612
BLAKE2b-256 1315acba503691b5a29f1d9e98ed9e0de1d54bfbdb9684411563e6295438f613

See more details on using hashes here.

Supported by

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