nowfound

Dev tools · June 1, 2023

Word2vec Algorithm in ~100sloc with NumPy

Here's a small demonstration of the fundamental aspects of the word-to-vec algorithm. It's implemented in a single python script and depends only on a single text file for training. It's not meant to be blazingly fast or anything, just a toy example to aid my understanding of how word vectors might be learnt from a corpus.

Word2vec Algorithm in ~100sloc with NumPy launched on June 1, 2023 with 72 votes, #1,266 of 4,655 launches that month and more than 90% of that year's launches. The site was not reachable when checked in September 2026.

In plain words

This is a lightweight Python implementation of the word2vec algorithm using only NumPy, contained in approximately 100 lines of code. It trains on a single text file to demonstrate how word vectors are learned from text. Designed as an educational tool rather than a production system, it helps users understand the fundamental mechanics of word embedding algorithms without external dependencies beyond NumPy.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • WA
  • Word2Bits – Quantized Word Vectors2018 · github.com · ▲221

    Quantized word vectors that take 8x-16x less space than regular word vectors - agnusmaximus/Word2Bits

  • Model2vec – Lightning-fast Static Embeddings for RAG/Semantic Search2024 · github.com · ▲28

    We’ve recently open-sourced Model2vec, a method to distill sentence transformers into static embeddings that outperform all previous approaches by a large margin on MTEB. Our new models set a new state-of-the-art for static embeddings. Main features: - Our best model (potion-base-8M) has only 8M parameters, which is ~30mb on disk - Inference is ~500x faster than the distilled base model (bge-base), on a CPU - New models can be distilled in 30 seconds on a CPU without requiring a dataset - just a vocabulary - Numpy-only inference: The packaged can be install the package with minimal…

  • Model2vec-Rs – Fast Static Text Embeddings in Rust2025 · github.com · ▲60

    Hey HN! We’ve just open-sourced model2vec-rs, a Rust crate for loading and running Model2Vec static embedding models with zero Python dependency. This allows you to embed text at (very) high throughput; for example, in a Rust-based microservice or CLI tool. This can be used for semantic search, retrieval, RAG, or any other text embedding usecase. Main Features: - Rust-native inference: Load any Model2Vec model from Hugging Face or your local path with StaticModel::from_pretrained(...). - Tiny footprint: The crate itself is only ~1.7 mb, with embedding models between 7 and 30 mb. Performance:…

  • Using word vectors to classify spam messages2017 · github.com · ▲104

    Using word vectors to classify spam messages. Contribute to doodyparizada/word2vec-spam-filter development by creating an account on GitHub.

  • Wordllama – Things you can do with the token embeddings of an LLM2024 · github.com · ▲370

    After working with LLMs for long enough, I found myself wanting a lightweight utility for doing various small tasks to prepare inputs, locate information and create evaluators. This library is two things: a very simple model and utilities that inference it (eg. fuzzy deduplication). The target platform is CPU, and it’s intended to be light, fast and pip installable — a library that lowers the barrier to working with strings semantically. You don’t need to install pytorch to use it, or any deep learning runtimes. How can this be accomplished? The model is simply token embeddings that are…

More dev tools this month

the category →
  • /dev/null▲490

    a social network for devs

    Dev tools · 3d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 28d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 26d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 23d ago · openbot.run

  • Talanoa▲346

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 21d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 29d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, June 2023

the whole month →
  • Heya HN, I've been working on a reddit-like platform as my primary side project for the last few years. Doing a (very) soft launch today, mainly because I want to use it to encourage discussion of alternatives. How non.io works: 1. Free to browse, paid to interact. 2. Minimum subscription is $2 (though you can choose more). I take $1 to run the servers, everything left gets split evenly between everything you upvote that month. It's a simple model, but I hope it's a better one than the freemium model we've been relying on for the last few years. Fundamentally I feel like any ad-supported…

    Commerce · 2023 · non.io

  • Sivi AI▲938

    Generative AI to magically turn text to visual designs

    AI · 2023 · sivi.ai

  • Effortlessly publish on Twitter and LinkedIn, now with AI

    Growth · 2023 · typefully.com

  • Olvy 2.0▲826

    Analyze user feedback 10x faster with AI

    AI · 2023 · olvy.co

  • SlashPage▲755

    Create websites in seconds to build your first 1K community

    Growth · 2023 · slashpage.com

  • Easy to use AI-powered, drag-and-drop website, SAAS landing, directory, and blog builder for startups, mobile apps, and SaaS. 100% no code, no design skills needed.

    AI · 2023 · unicornplatform.com