Sentencepiece

Language-independent tokenizer treating text as raw Unicode. Supports BPE and Unigram algorithms. Fast (50k sentences/sec), lightweight (6MB memory), deterministic vocabulary. Used by T5, ALBERT, XLNet, mBART. Train on raw text without pre-tokenization. Use when you need multilingual support, CJK languages, or reproducible tokenization.

tianhao909 Updated 1 repo stars

File contents

tianhao909/AI-Research-SKILLs-cn/tree/main/02-tokenization/sentencepiece commit c525d171eb

Frequently asked questions

npx skillmds@latest add tianhao909/sentencepiece