Skip to main content

Skip-Gram Word2Vec model with Hierarchical Softmax in PyTorch

Project description

SkipGram-HS 🧠

A PyTorch implementation of the Skip-Gram model with Hierarchical Softmax from scratch.

Features

  • Train skip-gram embeddings on your own corpus or NLTK's Brown corpus.
  • Hierarchical softmax for efficient training on large vocabularies.
  • Save trained embeddings and training loss history.
  • Analogy evaluation (e.g., king - man + woman ≈ queen).

Installation

Install directly from GitHub:

pip install git+https://github.com/agentksimha/skip_gram.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

skip_gram-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

skip_gram-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file skip_gram-0.1.2.tar.gz.

File metadata

  • Download URL: skip_gram-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for skip_gram-0.1.2.tar.gz
Algorithm Hash digest
SHA256 52b9b08d16674b1fc391bae5fcad0de0e65fc398351475ff1fb2d9928ec4f7e4
MD5 1a1a7774ec3847e82bdef804beae8406
BLAKE2b-256 e0963a989457718ddd36231b8997a92aa130ee62c2d7afbb9d1caab45122556b

See more details on using hashes here.

File details

Details for the file skip_gram-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: skip_gram-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for skip_gram-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77253f419bc592c09c4027d3f22ab5d971979e74a3b50754657e19f81c01f34c
MD5 50951bd95f3451daf8c9812cb69e4e88
BLAKE2b-256 fe95d8ca7f63b9b4a294949959327c2b89fb5ccc3fb2fec7efaa07adfdab99ec

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