Expand description
Tokenization utilities Tokenizer implementation using HuggingFace tokenizers
This module provides tokenization using the HuggingFace tokenizers library, with fallback to a basic tokenizer for simple use cases.
Structs§
- Batch
Tokenizer - Batch tokenization for multiple texts
- Special
Tokens - Special tokens configuration
- Tokenizer
- Tokenizer implementation that wraps HuggingFace tokenizers
Constants§
- BOS_
TOKEN_ ID - Special token IDs (defaults, may be overridden by loaded tokenizer)
- EOS_
TOKEN_ ID - PAD_
TOKEN_ ID - UNK_
TOKEN_ ID