What problem does it solve? Pure-Python tokenization is too slow for large corpora, and building custom vocabularies for domain-specific or multilingual models requires deep knowledge of subword algorithms. This Skill provides production-grade tokenization with a Rust core, letting you load pretrained tokenizers or train custom ones in minutes instead of hours. ## Core Features & Use Cases - Fast Pretrained Tokenization: Load tokenizers from the HuggingFace Hub and encode 1GB of text in under 20 seconds with full alignment tracking (token-to-character offsets). - Custom Tokenizer Training: Train BPE, WordPiece, or Unigram tokenizers from files or streaming dataset iterators with configurable vocabulary size, normalizers, and pre-tokenizers. - Transformers Integration: Wrap custom tokenizers with PreTrainedTokenizerFast for use with AutoTokenizer, padding, truncation, and offset mapping. - Use Case: You are building a medical language model and need a domain-specific vocabulary. Train a 50k BPE tokenizer on a PubMed corpus, wrap it for transformers, and use it directly with a BERT-style model. ## Quick Start Train a BPE tokenizer with a 30,000-token vocabulary on my corpus file and show me how to encode a sample sentence with it.