Language AI Handbook

Content from the Language AI Handbook, covering natural language processing, language models, and AI-powered language applications.

430 items · Page 9 of 9

Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Weight Initialization: Xavier, He & Variance Preservation

Apr 25, 2025·53 min read

Explains why weight initialization matters for training neural networks. Topics include Xavier and He initialization, orthogonal init, BERT and GPT schemes.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Adam Optimizer: Adaptive Learning Rates Explained

Apr 24, 2025·51 min read

Covers Adam optimizer: first and second moment estimates, bias correction, adaptive learning rates, hyperparameter tuning.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Momentum: SGD Optimization with Velocity Accumulation

Apr 23, 2025·50 min read

Momentum smooths gradient updates with a velocity term. Covers Polyak momentum, Nesterov acceleration, damped oscillations, and optimization tradeoffs.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Gradient Clipping in Deep Learning

Apr 22, 2025·50 min read

Explains how gradient clipping prevents training instability by capping gradient magnitudes. Topics include clip by value vs clip by norm strategies.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Activation Functions for Neural Networks

Apr 21, 2025·50 min read

Covers every major activation function from sigmoid to GELU. Topics include saturation, dying ReLU, gradient flow analysis.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

AdamW: Decoupled Weight Decay for Neural Networks

Apr 20, 2025·45 min read

Covers AdamW by understanding why L2 regularization and weight decay diverge in adaptive optimizers.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Batch Normalization: Stabilizing Deep Network Training

Apr 19, 2025·54 min read

Explains how batch normalization eliminates internal covariate shift by normalizing layer activations.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Special Tokens: CLS, SEP, PAD, MASK, and UNK in Transformers

Apr 18, 2025·57 min read

Explains how special tokens like [CLS], [SEP], [PAD], [MASK], and [UNK] structure transformer inputs, enable classification, handle padding.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Tokenization Challenges: Numbers, Code, Multilingual

Apr 17, 2025·61 min read

Covers where subword tokenizers fail: number fragmentation, code identifier splitting, multilingual fertility gaps, emoji edge cases.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Part-of-Speech Tagging: Tag Sets, Algorithms, Implementation

Apr 16, 2025·64 min read

Covers POS tagging from tag sets to statistical taggers. Topics include Penn Treebank, Universal Dependencies, emission and transition probabilities.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Named Entity Recognition: Types, BIO Tagging & Evaluation

Apr 15, 2025·60 min read

Explains how NER identifies people, organizations, and locations using BIO sequence labeling. Topics include entity types, boundary detection, nested entities.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

SentencePiece: Subword Tokenization with BPE and Unigram

Apr 14, 2025·44 min read

SentencePiece trains BPE and unigram tokenizers directly on raw text. Covers whitespace handling, multilingual vocabularies, and model training.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Tokenizer Training with Hugging Face

Apr 13, 2025·53 min read

Train custom tokenizers with HuggingFace, covering corpus preparation, vocabulary sizing, algorithm selection, saving, versioning.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learningnatural-language-processing

BIO Tagging for Named Entity Recognition

Apr 12, 2025·55 min read

Covers the BIO tagging scheme for named entity recognition, including BIOES variants, span-to-tag conversion, decoding.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Byte Pair Encoding: Subword Tokenization

Apr 11, 2025·46 min read

Covers Byte Pair Encoding (BPE), the subword tokenization algorithm powering GPT and modern LLMs. Explains how BPE builds a vocabulary.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

GloVe: Word Embeddings via Co-Occurrence Matrix

Apr 10, 2025·47 min read

Explains how GloVe derives word embeddings from co-occurrence ratios, derives the weighted least squares objective.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

FastText: Subword Embeddings, Character N-grams

Apr 9, 2025·51 min read

Explains how FastText extends Word2Vec with character n-grams to handle out-of-vocabulary words, typos.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Embedding Evaluation: Intrinsic and Extrinsic Methods

Apr 8, 2025·54 min read

Evaluate word embeddings using similarity benchmarks, analogy tests, t-SNE visualization, downstream tasks, and bias detection with WEAT.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Word2Vec Training: Gensim and PyTorch Pipeline

Apr 7, 2025·50 min read

Covers Word2Vec training pipeline: subsampling, learning rate scheduling, minibatch training, convergence monitoring.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Hierarchical Softmax

Apr 6, 2025·53 min read

Explains how hierarchical softmax reduces word embedding training from O(V) to O(log V) using Huffman-coded binary trees, path probabilities.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Word Analogy: Vector Arithmetic and Semantic Relationships

Apr 5, 2025·49 min read

Explains how word embeddings solve analogies via vector arithmetic, covering the parallelogram model, 3CosAdd and 3CosMul methods, evaluation datasets.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Negative Sampling: Efficient Word2Vec Training

Apr 4, 2025·47 min read

Explains how negative sampling reduces Word2Vec training from O(V) to O(k), covering the binary classification objective, unigram^0.75 sampling distribution.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

CBOW Model: Architecture, Gradients, Word Embedding Training

Apr 3, 2025·52 min read

Examines the CBOW Word2Vec architecture covering context averaging, the objective function, gradient derivation, training dynamics.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Skip-gram Model: Word2Vec Architecture and Word Embeddings

Apr 2, 2025·41 min read

Explains how the Skip-gram model trains a neural network to predict context words and learns dense word embeddings.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Singular Value Decomposition: SVD, LSA, and Word Embeddings

Apr 1, 2025·52 min read

Explains how Singular Value Decomposition compresses sparse co-occurrence matrices into dense word embeddings through Latent Semantic Analysis.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Pointwise Mutual Information: Word Associations in NLP

Mar 31, 2025·48 min read

Explains how PMI and PPMI transform raw co-occurrence counts into normalized word association scores.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Term Frequency: Weighting Schemes for Text Analysis

Mar 30, 2025·46 min read

Examines raw, log-scaled, boolean, augmented, and L2-normalized term frequency variants, with sparsity analysis and efficient computation using scikit-learn.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

The Distributional Hypothesis: Word Meaning from Context

Mar 29, 2025·46 min read

Explains how Firth's principle that words are known by their company underpins distributional semantics.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Inverse Document Frequency

Mar 28, 2025·59 min read

Explains how Inverse Document Frequency (IDF) measures word importance across a corpus by weighting rare, discriminative terms higher than common words.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

TF-IDF for Text Representation

Mar 27, 2025·51 min read

Covers TF-IDF for text representation, including the core formula, variants, normalization, document similarity, feature extraction, sklearn TfidfVectorizer.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Perplexity: The Standard Language Model Metric

Mar 26, 2025·63 min read

Explains how perplexity measures language model quality through cross-entropy and information theory.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

BM25: the Search Algorithm Behind Elasticsearch

Mar 25, 2025·52 min read

Covers BM25, the probabilistic ranking algorithm powering modern search engines. Topics include IDF derivation, term saturation, length normalization, BM25L.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learningnatural-language-processing

Co-occurrence Matrices: Distributional Semantics in NLP

Mar 24, 2025·50 min read

Explains how word-word and word-document co-occurrence matrices encode distributional meaning.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

N-gram Language Models: Probability and Text Generation

Mar 23, 2025·58 min read

Explains how n-gram language models assign probabilities to word sequences using the chain rule, Markov assumption, and MLE.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Smoothing Techniques for N-gram LLMs: Laplace to Kneser-Ney

Mar 22, 2025·56 min read

Covers smoothing techniques that solve the zero probability problem in n-gram models, from simple add-k smoothing through Good-Turing estimation to Kneser-Ney.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Bag of Words: Document-Term Matrices

Mar 21, 2025·51 min read

Explains how the Bag of Words model transforms text into numerical vectors through word counting, vocabulary construction, and sparse matrix storage.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Sentence Segmentation

Mar 20, 2025·62 min read

Covers sentence boundary detection in NLP, covering the period disambiguation problem, rule-based approaches.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

N-grams: Capturing Word Order in Text

Mar 19, 2025·47 min read

Covers n-gram text representations including bigrams, trigrams, character n-grams, and skip-grams. Topics include extraction techniques.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Word Tokenization: Breaking Text into Meaningful Units

Mar 18, 2025·64 min read

Split text into words and tokens using whitespace, punctuation handling, and linguistic rules. Topics include NLTK, spaCy, Penn Treebank conventions.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Text Normalization: Unicode Forms

Mar 17, 2025·52 min read

Covers text normalization techniques including Unicode NFC/NFD/NFKC/NFKD forms, case folding vs lowercasing, diacritic removal, and whitespace handling.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Regular Expressions for NLP: Pattern Matching in Python

Mar 16, 2025·56 min read

Covers regular expressions for text processing, covering metacharacters, quantifiers, lookarounds, and practical NLP patterns.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Character Encoding: From ASCII to UTF-8 for NLP

Mar 15, 2025·52 min read

Covers character encoding fundamentals including ASCII, Unicode, and UTF-8. Detect, fix, and prevent encoding errors like mojibake in your NLP pipelines.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

BART Architecture: Encoder-Decoder Design for NLP

Jan 13, 2025·57 min read

Covers BART's encoder-decoder architecture combining BERT and GPT designs. Examines attention patterns, model configurations, and implementation details.

Open notebook
Language AI HandbookMachine Learning

RAG Evaluation: Metrics for Retrieval and Generation Quality

Jan 13, 2025·65 min read

Covers RAG evaluation with metrics for retrieval quality (Precision@K, NDCG, MRR) and generation faithfulness using the RAGAS framework for AI systems.

Open notebook
Machine LearningLanguage AI HandbookData, Analytics & AI

Kaplan Scaling Laws: Predicting Language Model Performance

Jan 13, 2025·40 min read

Explains how Kaplan scaling laws predict LLM performance from model size, data, and compute.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Mixtral 8x7B: Sparse Mixture of Experts Architecture

Nov 23, 2024·77 min read

Examines Mixtral 8x7B's sparse architecture and top-2 expert routing. Explains how MoE models match Llama 2 70B quality.

Open notebook
Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12