01Chapter 1: Why labeled text is the bottleneckSupervised text classifiers need labeled examples, and getting those labels is usually the slowest and most expensive part of an NLP project. This chapter explains why, puts rough numbers on the cost, and shows the trade-off that weak supervision makes in response. Later chapters build the tools.6 min read
02Chapter 2: The weak supervision idea: many noisy sources instead of few clean labelsThis chapter assumes you can train and evaluate a text classifier, read precision, recall and F1, use basic probability (conditional probability and independence), and read simple Python and regular expressions. The previous chapter covered why labeled text is scarce and expensive. This one introduc6 min read
03Chapter 3: Writing labeling functions that can abstainThis chapter assumes you can write basic Python, read simple regular expressions, and compute precision and recall. You should also know why a text classifier needs labeled examples. Earlier chapters explained why labeled text is scarce and why many noisy sources can stand in for a few clean labels.5 min read
04Chapter 4: Distant supervision: labels from lexicons and knowledge basesThis chapter assumes you have read the earlier chapters on labeling functions and abstention. You should be comfortable with Python sets and dictionaries, regular expressions, and the idea that a labeling function returns a class or ABSTAIN.5 min read
05Chapter 5: The label matrix: sources by examplesThis chapter assumes you can write basic Python and NumPy, and that you have seen the labeling functions from the previous chapter: small functions that return a class or abstain. You do not need probability beyond knowing what a vote is. The chapter covers how the votes from many labeling functions6 min read
06Chapter 6: Measuring coverage, overlap and conflictThis chapter assumes you can read basic NumPy and know what a labeling function and a label matrix are. In a label matrix, each row is an example, each column is a labeling function, and each cell holds a class or an abstain value. You also need accuracy and the idea of a small hand-labeled gold set6 min read
07Chapter 7: Majority vote as a baselineThis chapter assumes you have read the previous chapters on labeling functions and the label matrix. You should be comfortable with Python lists and collections.Counter, and with accuracy and coverage as evaluation measures. The goal is a combiner you can write in ten lines, understand fully, and 6 min read
08Chapter 8: Label models: learning source accuracies without ground truthMajority vote treats every labeling function (LF) as equally reliable. A label model drops that assumption. It estimates how accurate each source is from the way the sources agree and disagree, then uses those estimates to weight their votes. This chapter explains the idea, builds a small label mode5 min read
09Chapter 9: From votes to probabilistic labelsA majority vote returns one class per example, or an abstention. It throws away how many sources voted, how reliable they are, and how much they disagreed. This chapter shows how to keep that information as a probability for each class, and how to train on it.5 min read
10Chapter 10: Training a classifier on weak labelsThis chapter assumes you can train a scikit-learn text classifier, you know what a label matrix and a label model are from the previous chapters, and you are comfortable with precision, recall and F1. It covers the last step of the pipeline: turning the label model's output into a classifier you can5 min read
11Chapter 11: Evaluating with a small hand-labeled gold setThis chapter assumes you can write basic Python, know precision, recall and F1, and have read the earlier chapters on labeling functions, the label matrix, label models and training the end model. Weak labels are noisy, and the label model's own confidence is an estimate built from those same noisy 5 min read
12Chapter 12: Using an LLM as a labeling sourceThis chapter assumes you know the labeling functions, label matrix and label model from the earlier chapters, and that you can call a text-generation model from Python. It treats a large language model (LLM) as one more noisy labeling function. You will learn how to prompt it, parse its answers, let5 min read
13Chapter 13: Filtering synthetic labels by confidence and agreementThis chapter assumes you can write basic Python and train and evaluate a text classifier. It also assumes you know precision, recall and F1, and have read the earlier chapter on using an LLM as a labeling source. Here we decide which LLM-produced labels are good enough to train on.5 min read
14Chapter 14: Generating synthetic training textThis chapter shows how to ask a language model to write new labeled examples, and how to keep that data from misleading you. It assumes you have read the earlier chapters on labeling functions, the label model, and LLMs as labeling sources. It also assumes basic Python and a trained text classifier 5 min read
15Chapter 15: Failure modes: correlated sources, bias, leakage and feedback loopsThis chapter assumes you can write labeling functions, build a label matrix, and read coverage, overlap and conflict numbers. It also assumes you know how a label model and an end model fit together, and that you can compute precision, recall and F1. The earlier chapters showed how to produce weak l5 min read
16Chapter 16: An iterative workflow for weak supervision projectsThis chapter assumes you have read the earlier chapters. You should know how to write labeling functions that abstain, build a label matrix, read coverage, overlap and conflict, and use a label model, an end model and a gold set. Here those pieces are combined into a repeatable loop. A weak supervis6 min read