Sub topic 1
Why Labeled Text Is the Bottleneck
A text classifier learns from examples that pair text with a target label. A review might be paired with positive or negative. A support message might be paired with billing, technical, or account. These pairs are labeled data.
Most organizations have plenty of raw text. They may have millions of reviews, tickets, messages, or documents. Raw text alone does not tell a model which answer is correct. Someone must create the labels, or provide a reliable way to infer them.
Prerequisites
This chapter assumes you know basic Python, supervised text classification, precision, recall, F1 score, and the idea of a training and test set. You should also understand regular expressions and basic probability.
Why labeling takes so much work
A useful label is more than a quick guess. An annotator must read the text, apply the project rules, and sometimes inspect context outside the text. Different annotators may interpret the same example differently.
For example, consider this review:
> The battery is great, but the screen broke after one week.
Is the overall sentiment positive, negative, or mixed? A labeling guide must define the answer. Without clear rules, the dataset contains inconsistent labels. The classifier then learns both the intended pattern and the annotators' disagreements.
The cost grows with the number of examples and the complexity of the label scheme.
| Labeling challenge | Effect on a project |
|---|---|
| Ambiguous text | Annotators disagree |
| Rare classes | Many examples must be searched to find enough cases |
| Specialist vocabulary | Domain experts may be required |
| Changing language | Old labels become less reliable |
The trade-off between quality and volume
A small, carefully labeled dataset can have high accuracy but poor coverage. It may miss unusual wording, new products, minority languages, or rare events. A large dataset can cover more cases, but manual labeling becomes expensive and slow.
This creates a practical bottleneck:
The bottleneck also slows experimentation. If a team changes the label definition, it may need to relabel the dataset. If a model fails on a new type of message, the team needs more examples of that type before it can test a fix.
Why weak supervision helps
Weak supervision changes how labels are produced. Instead of asking a person to label every example, a project uses several imperfect sources. A source might be a keyword rule, a database field, a knowledge base, or another model. Each source can be wrong, and each source can decline to label an example.
The goal is not to pretend that these labels are perfect. The goal is to produce useful training signals at much greater volume. Later chapters show how to combine these noisy signals and measure whether they help.
Exercise
Why can a large collection of raw text still be insufficient for supervised classification?
Show answer
Raw text does not specify the correct target label. Without labels, the model cannot directly learn which output should correspond to each example.