Add README
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142---tags:- tokenizer- bpe- twitch- chatlicense: mitlibrary_name: nonelanguage:- en---
# Twitch BPE Tokenizer
A custom Byte Pair Encoding (BPE) tokenizer trained on Twitch chat.
- Granularity: word- Vocab size: ~53k (configurable)- Metrics (val): entropy compression ratio ~3.0, roundtrip ~0.997
## Files- bpe_vocab.json- bpe_merges.txt- tokenizer_config.json
## Usage```pythonfrom huggingface_hub import hf_hub_downloadfrom src.bpe_tokenizer import BPETokenizer # or copy the class into your project
repo_id = "Soldier-Boy/twitch-tokenizer"vocab_path = hf_hub_download(repo_id, filename="bpe_vocab.json")merges_path = hf_hub_download(repo_id, filename="bpe_merges.txt")config_path = hf_hub_download(repo_id, filename="tokenizer_config.json")
# Place the three files in a folder and point BPETokenizer to it# or adapt BPETokenizer to accept file paths directly.```
## Notes- Mentions/URLs are normalized to placeholders (e.g., <USER>, <URL>) by the pipeline.- Tokenization allows space-attached merges for efficiency (like GPT-2).README.mdAdded+42