NLP
From text and tokenization to embeddings, transformers, and LLMs. Posts are listed in the order the ideas build on each other.
What NLP is
Text as data
Text as data· 7 min
Why text is hard data for machine learning
Text as data· 6 min
Unicode and UTF-8 explained: how computers store text
Text as data· 7 min
Where to find NLP datasets: Hugging Face Hub, Kaggle, and more
Text as data· 7 min
How to build your own NLP dataset: selecting data, extracting text, documenting it
Text as data· 8 min
Data annotation for NLP: crowdsourcing vs experts, and inter-annotator agreement
Text as data· 9 min
Text preprocessing in NLP: normalization, stemming vs lemmatization, and stopwords
Text as data· 6 min
How to handle class imbalance in text classification
Text as data· 10 min
Data quality problems in NLP: duplicates, contamination, bias, and representativeness
Text as data· 5 min
Privacy and licensing: can you train a model on scraped text?
Tokenization
Tokenization· 16 min
What is tokenization in NLP? Word, character, and subword tokens
Tokenization· 10 min
Byte pair encoding (BPE) explained step by step, including byte-level BPE
Tokenization· 7 min
BPE vs WordPiece vs Unigram tokenization
Tokenization· 11 min
How to use a Hugging Face tokenizer: special tokens, token IDs, padding, and batches
Tokenization· 6 min
Why LLMs miscount letters: tokenization quirks and non-English text
Word representations
Word representations· 12 min
How to turn words into numbers: integer encoding, one-hot, and dense vectors
Word representations· 8 min
Bag of words, co-occurrence matrices, and PMI: count-based word vectors
Word representations· 5 min
What are word embeddings?
Word representations· 9 min
Word2Vec explained: skip-gram vs CBOW
Word representations· 7 min
Negative sampling and hierarchical softmax explained
Word representations· 8 min
Word2Vec vs GloVe vs fastText
Word representations· 10 min
How to visualize and evaluate word embeddings: clustering, intrinsic and extrinsic evaluation
Word representations· 5 min
Static vs contextual embeddings: why Word2Vec gives "bank" one vector
Language models and RNNs
Language models and RNNs· 12 min
What is a language model? From bigrams to neural next-token prediction
Language models and RNNs· 12 min
How language models are trained: next-token prediction, from logits to loss
Language models and RNNs· 6 min
Perplexity explained
Language models and RNNs· 14 min
Recurrent neural networks (RNNs) explained, with backpropagation through time
Language models and RNNs· 10 min
LSTM explained
Language models and RNNs· 8 min
LSTM vs GRU
Language models and RNNs· 9 min
Encoder-decoder (seq2seq) models explained
Language models and RNNs· 12 min
LLM decoding strategies: greedy, sampling, top-k, top-p, and min-p
Language models and RNNs· 6 min
LLM temperature explained
Language models and RNNs· 8 min
Beam search explained
Language models and RNNs· 8 min
Teacher forcing and exposure bias explained
Language models and RNNs· 8 min
Generalization vs memorization in language models
NLP tasks
NLP tasks· 14 min
NLP tasks explained, and how to frame your problem as one
NLP tasks· 10 min
Text classification explained: sentiment, topic, and intent
NLP tasks· 7 min
Natural language inference (NLI) explained
NLP tasks· 10 min
Named entity recognition and part-of-speech tagging: token classification explained
NLP tasks· 13 min
Question answering in NLP: extractive vs generative
NLP tasks· 10 min
Sentence embeddings and semantic similarity
NLP tasks· 7 min
Retrieval and text ranking explained
NLP tasks· 8 min
Text generation tasks: translation, summarization, and open-ended generation
Attention and transformers
Attention and transformers· 8 min
What is attention in deep learning? Explained from the seq2seq bottleneck
Attention and transformers· 8 min
How transformers work, explained for someone who has never seen one
Attention and transformers· 15 min
Self-attention explained step by step: queries, keys, and values
Attention and transformers· 11 min
Multi-head attention explained
Attention and transformers· 13 min
Positional encoding explained
Attention and transformers· 9 min
Causal masking explained
Attention and transformers· 13 min
Build a small GPT from scratch in PyTorch
Transformer families
Transformer families· 12 min
Encoder vs decoder vs encoder-decoder transformers (BERT, GPT, T5)
Transformer families· 9 min
Masked language modeling explained: how BERT is trained
Transformer families· 6 min
What changed in transformers since the original: modern variants
Transformer families· 6 min
KV cache and grouped-query attention explained
Transformer families· 5 min
Open-weight vs closed LLMs
Transformer families· 11 min
How to load a model with Hugging Face transformers
Transformer families· 10 min
Fine-tuning vs transfer learning explained
Large language models
Large language models· 14 min
How do LLMs work? Foundation models and pretraining explained
Large language models· 6 min
Emergent abilities in LLMs
Large language models· 7 min
Scaling laws explained: parameters, data, and compute
Large language models· 6 min
Why LLMs hallucinate, and their other failure modes
Post-training and alignment
Post-training and alignment· 6 min
How ChatGPT-style assistants are trained: pretraining vs post-training
Post-training and alignment· 7 min
Instruction tuning and supervised fine-tuning (SFT) explained
Post-training and alignment· 12 min
RLHF explained
Post-training and alignment· 8 min
DPO vs RLHF
Post-training and alignment· 8 min
How LLM alignment is evaluated, and what is still unsolved
Post-training and alignment· 8 min
DPO vs RLHF
Post-training and alignment· 8 min
How LLM alignment is evaluated, and what is still unsolved
Post-training and alignment· 12 min
RLHF explained
Post-training and alignment· 7 min
Instruction tuning and supervised fine-tuning (SFT) explained
Post-training and alignment· 6 min
How ChatGPT-style assistants are trained: pretraining vs post-training
Large language models· 6 min
Why LLMs hallucinate, and their other failure modes
Large language models· 6 min
Emergent abilities in LLMs
Large language models· 14 min
How do LLMs work? Foundation models and pretraining explained
Large language models· 7 min
Scaling laws explained: parameters, data, and compute
Transformer families· 10 min
Fine-tuning vs transfer learning explained
Transformer families· 11 min
How to load a model with Hugging Face transformers
Transformer families· 5 min
Open-weight vs closed LLMs
Transformer families· 6 min
KV cache and grouped-query attention explained
Transformer families· 9 min
Masked language modeling explained: how BERT is trained
Transformer families· 6 min
What changed in transformers since the original: modern variants
Attention and transformers· 13 min
Build a small GPT from scratch in PyTorch
Attention and transformers· 9 min
Causal masking explained
Transformer families· 12 min
Encoder vs decoder vs encoder-decoder transformers (BERT, GPT, T5)
Attention and transformers· 11 min
Multi-head attention explained
Attention and transformers· 13 min
Positional encoding explained
Attention and transformers· 15 min
Self-attention explained step by step: queries, keys, and values
Attention and transformers· 8 min
How transformers work, explained for someone who has never seen one
NLP tasks· 8 min
Text generation tasks: translation, summarization, and open-ended generation
Attention and transformers· 8 min
What is attention in deep learning? Explained from the seq2seq bottleneck
NLP tasks· 13 min
Question answering in NLP: extractive vs generative
NLP tasks· 7 min
Retrieval and text ranking explained
NLP tasks· 10 min
Sentence embeddings and semantic similarity
NLP tasks· 10 min
Named entity recognition and part-of-speech tagging: token classification explained
NLP tasks· 7 min
Natural language inference (NLI) explained
NLP tasks· 10 min
Text classification explained: sentiment, topic, and intent
Language models and RNNs· 8 min
Generalization vs memorization in language models
NLP tasks· 14 min
NLP tasks explained, and how to frame your problem as one
Language models and RNNs· 8 min
Teacher forcing and exposure bias explained
Language models and RNNs· 8 min
Beam search explained
Language models and RNNs· 12 min
LLM decoding strategies: greedy, sampling, top-k, top-p, and min-p
Language models and RNNs· 6 min
LLM temperature explained
Language models and RNNs· 9 min
Encoder-decoder (seq2seq) models explained
Language models and RNNs· 10 min
LSTM explained
Language models and RNNs· 8 min
LSTM vs GRU
Language models and RNNs· 12 min
How language models are trained: next-token prediction, from logits to loss
Language models and RNNs· 6 min
Perplexity explained
Language models and RNNs· 14 min
Recurrent neural networks (RNNs) explained, with backpropagation through time
Word representations· 5 min
Static vs contextual embeddings: why Word2Vec gives "bank" one vector
Word representations· 10 min
How to visualize and evaluate word embeddings: clustering, intrinsic and extrinsic evaluation
Language models and RNNs· 12 min
What is a language model? From bigrams to neural next-token prediction
Word representations· 7 min
Negative sampling and hierarchical softmax explained
Word representations· 9 min
Word2Vec explained: skip-gram vs CBOW
Word representations· 8 min
Word2Vec vs GloVe vs fastText
Word representations· 8 min
Bag of words, co-occurrence matrices, and PMI: count-based word vectors
Word representations· 12 min
How to turn words into numbers: integer encoding, one-hot, and dense vectors
Word representations· 5 min
What are word embeddings?
Tokenization· 7 min
BPE vs WordPiece vs Unigram tokenization
Tokenization· 11 min
How to use a Hugging Face tokenizer: special tokens, token IDs, padding, and batches
Tokenization· 6 min
Why LLMs miscount letters: tokenization quirks and non-English text
Tokenization· 10 min
Byte pair encoding (BPE) explained step by step, including byte-level BPE
Text as data· 5 min
Privacy and licensing: can you train a model on scraped text?
Tokenization· 16 min
What is tokenization in NLP? Word, character, and subword tokens
Text as data· 6 min
How to handle class imbalance in text classification
Text as data· 10 min
Data quality problems in NLP: duplicates, contamination, bias, and representativeness
Text as data· 9 min
Text preprocessing in NLP: normalization, stemming vs lemmatization, and stopwords
Text as data· 8 min
Data annotation for NLP: crowdsourcing vs experts, and inter-annotator agreement
Text as data· 7 min
How to build your own NLP dataset: selecting data, extracting text, documenting it
Text as data· 7 min
Where to find NLP datasets: Hugging Face Hub, Kaggle, and more
What NLP is· 7 min
A short history of NLP: from ELIZA to deep learning
Text as data· 6 min
Unicode and UTF-8 explained: how computers store text
Text as data· 7 min
Why text is hard data for machine learning
What NLP is· 9 min
What is NLP? Natural language processing explained
What NLP is· 14 min
How to learn NLP in 2026: a complete roadmap from text to LLMs
No posts match your search.