vrishank

← Projects

mankingwomanqueen

AI / ML · Python

Word2Vec Built

Word embeddings built without a framework, capturing semantic relationships as the base for similarity and analogy tasks.

I built a Word2Vec model from scratch using a bag-of-words approach. The model learns embeddings for a vocabulary of around 5000 words, each represented in 60 dimensions. I implemented everything myself—from tokenization and dataset preparation to the forward and backward passes—focusing on understanding how embeddings are actually learned rather than relying on pre-built libraries.

The model captures semantic relationships by placing words that appear in similar contexts close to one another in the vector space. Training it from the ground up reinforced my understanding of how distributed representations work in NLP and why they are so powerful.

I also wrote a detailed blog explaining the intuition behind Word2Vec, the mathematics of the training process, and my step-by-step implementation. You can check out the full code and write-up here. This project was both challenging and rewarding, and it gave me hands-on insight into representation learning.

Github Repo