Language AI Handbook

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

409 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 & 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