The tool that converts raw text into the numbered codes an AI model actually reads before it can process anything.
Technically: A deterministic component that maps a text string to a sequence of integer token IDs using a learned vocabulary and an encoding algorithm (BPE, WordPiece, SentencePiece), and reverses the mapping for decoding. It is part of the model contract: a mismatched tokenizer silently corrupts inputs, and special tokens for system, tool-call, or image roles must be handled correctly.
Category: Data & Representations