Do LLMs understand english?
How does ChatGPT respond to me?
Free Text
Tokenization
Project in Python
Swi
pe
t
ok
no
w
What is text tokenization?
Text tokenization is a preprocessing step
for LLMs to break down text into
individual units called tokens (words,
characters, or subwords). This helps LLMs
understand and process human language.
Word-level tokenization
Subword tokenization: pieces, prefixes/suffixes
Character-level tokenization: text classification.
Tokenization Tools
NLTK (Natural Language Toolkit), spaCy:
popular Python libraries for NLP tasks,
including tokenization.
Hugging Face Transformers: a library
providing pre-trained models and
tokenization tools for NLP tasks.
Importance of tokenization
Enables LLMs to process text
Improves model efficiency: reduces the
vocabulary size, enabling the model specialization.
Handles out-of-vocabulary words
Free guided project + hands on experience
15 minutes
Start for free
Beginner level