Knowledge Graph — Coursera NotesAcademic disciplinesInformation Technology / Computer ScienceArtificial IntelligenceNatural Language Processing (NLP)

Tokenization

concept · part of Natural Language Processing (NLP)

Tokenization converts text into a format that models can process, typically by splitting text into tokens (words or subwords) and mapping them to integer IDs. Hugging Face's AutoTokenizer provides tokenization with options like truncation and padding to a fixed length.

Tokenization splits text into smaller units called tokens (words, subwords, or characters). Example: 'The quick brown fox' becomes ['The', 'quick', 'brown', 'fox']. It allows NLP systems to process text by breaking language into manageable parts.

Tokenization should always be the first step in an NLP pipeline. The output must be compatible with downstream components like POS tagging and NER; for example, tokenization should not split proper names like 'New York City' if NER is used later.

This is the text view of an interactive 3D knowledge graph — open this page with JavaScript enabled to explore it visually.

🧠 Knowledge Graph

Select a node

The owner's editing tools — shown here so you can see how the graph is grown, but read-only.

Click a bubble to drill in · click again to collapse · drag to move around