AI GlossaryTokenization

[Natural Language Processing]

Tokenization.

Breaking text into smaller units (tokens) such as words, subwords, or characters.

In-depth explanation

01

Tokenization is the first step in NLP pipelines, converting raw text into a sequence of tokens that models can process. Word tokenization splits on spaces; subword tokenization (like BPE, WordPiece) handles unknown words better. Each token is then typically mapped to a numerical ID. Tokenization choices significantly impact model performance.

Examples

02
EX. 01

"Hello world" → ["Hello", "world"]

EX. 02

Subword: "unhappiness" → ["un", "happiness"]

[NEXT] — APPLY THE CONCEPT

Master Tokenization.

Learn how to apply this concept with hands-on projects in our comprehensive AI programs.