Skip to content

A small project visually showing how different tokenizers split word. Inspired by OpenAI's tool.

Notifications You must be signed in to change notification settings

jSwords91/token-viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Viz

Token Viz is a project that utilizes FastAPI, Hugging Face, and basic HTML, JS, and CSS to visually demonstrate tokenization.

Token Viz

Installation

  1. Clone the repository:
git clone https://github.com/your-username/token-viz.git
  1. Navigate to the project directory:
cd token-viz
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Start the FastAPI server:
uvicorn main:app --port 8000  --reload
  1. Open your web browser and go to http://localhost:8000 to access the Token Viz interface.

About

A small project visually showing how different tokenizers split word. Inspired by OpenAI's tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published