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.1.tar.gz (5.0 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skip_gram-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 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.1.tar.gz
Algorithm Hash digest
SHA256 e5470852e528f3e0797c931e861038a41cf84c356c8e753c14f0e628fda10937
MD5 8b29e9e98d06a2b2f29b340771a3aab6
BLAKE2b-256 34cb301890bfc3d5bafa12d66ba63726407464bccc1cec6c15156ad88e3c1f81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skip_gram-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76cbba40bdd710a014dd469407b8313d59fb4dd10d2cf599e5c3ee7ecdab3f9f
MD5 12c89eda463039c628fceeaa95b34e68
BLAKE2b-256 eb2fd785b89df2646f08c08474308e450b4b838f6da260137bf218d99c5b21c0

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