COMP5046 — Natural Language Processing

Lecture 8: Data — Sources, Annotation, Crowdsourcing

Where text comes from · how to clean it · how to label it · how to measure agreement · ethics & risks.

How to use: for each section, name one concrete dataset or metric · close the page and answer Recall lines.

Where data comes from

Sources of NLP data

RecallName two trade-offs between web-scale crawl data and curated high-quality data.

Pre-processing

Quality, filtering, and cleaning

RecallWhy deduplicate before training, and what does FineWeb do differently from naive heuristic filtering?

Six properties

What makes a good dataset?

Shortcut example (SNLI): a model that sees only the hypothesis (no premise) still scored well — annotators had stylistic tells for each label. Always sanity-check whether the model can "cheat" without the input.

RecallWhat is a "Clever Hans" shortcut, and how would you probe for one in an NLI dataset?

Pipeline

Annotation pipeline

Collect Guidelines Pilot Annotate Adjudicate Release refine guidelines
Annotation flow: pilot & adjudication feed back into the guidelines before full release.

RecallWhy is pilot annotation done before full annotation? What does adjudication produce?

Gold standards

Linguistic resources & landmark datasets

RecallWhat is the purpose of a benchmark suite like GLUE, compared to a single dataset?

How consistent?

Inter-annotator agreement

RecallWhy subtract \(p_e\) instead of just reporting \(p_o\)? Give an imbalanced-class scenario where \(p_o\) is high but \(\kappa\) is low.

Many hands

Crowdsourcing

RecallList two qualifications you would require for an MTurk NER annotation HIT, and explain why.

Ethics

Risks, ethics, and documentation

RecallName two items a datasheet should record. Why is annotation considered human subjects research?

Lab

Workshop preview & materials

Quick practice

Two annotators label 100 emails as spam / not-spam. \(p_o = 0.98\), \(p_e = 0.961\). What does Cohen's kappa tell you?
Excellent agreement (raw 98%)
\(\kappa \approx 0.49\) — agreement is only moderate once chance is removed, because the class is heavily imbalanced
Annotators disagree on every example
Kappa cannot be computed for binary tasks
Which step should happen before launching full annotation on thousands of items?
Releasing the dataset
Filing for a software patent
A pilot annotation round to discover ambiguous cases and refine the guidelines
Computing the final test-set metric
What was FineWeb's innovation in deciding which web-crawl filters to apply?
Train small LLMs with each candidate filter on/off and pick filters by measured downstream accuracy
Copy the filters used by Common Crawl
Use a regex blocklist of bad words
Crowd-vote each document

Chapter quizzes

Retrieval practice for this lecture.

Open Quiz Hub Chapter flashcards