Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tokenization & Embedding Explorer

An interactive CLI tool to explore how LLMs process text — from raw input to tokens, token IDs, and semantic embeddings.

What it does

  • Tokenizes any input text using BERT tokenizer
  • Shows token → token ID mapping
  • Generates semantic embedding vectors
  • Computes cosine similarity between two sentences

Why this matters

Every LLM pipeline starts here. Before RAG, before agents, before fine-tuning — text must become numbers. This tool makes that process visible and interactive.

Run it

pip install transformers torch sentence-transformers numpy
python explorer.py

Tech Stack

  • HuggingFace Transformers
  • Sentence Transformers (all-MiniLM-L6-v2)
  • BERT tokenizer (bert-base-uncased)
  • NumPy

Demo

Demo

About

nlp huggingface tokenization embeddings python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages