Skip to main content

Exercises — Corpus preparation

Self-check questions, exercises, and worked answers

← Back to the lesson: Corpus preparation

Check your understanding

  1. Why does a random split of text chunks not guarantee independence between train and test?
Show answer

Chunks from the same document, source, or family may appear in multiple partitions. The split unit must match the generalization claim being tested, and overlap must then be audited.

  1. Why freeze the tokenizer after fitting it on the training partition?
Show answer

To prevent its vocabulary or rules from incorporating information from texts reserved for validation or test in a held-out experiment.

  1. Is deduplication always beneficial?
Show answer

No. It can reduce over-representation, but it can also alter the corpus distribution or remove legitimate repetitions. The method and its effects should be documented.

  1. What information should accompany the token stream handed to the next stage?
Show answer

At minimum, corpus provenance, the exact tokenizer revision, encoding parameters, useful statistics, and document-boundary rules.

  1. Why does high inter-annotator agreement not, by itself, prove that labels are correct?
Show answer

Annotators may share the same bias, consistently apply an ambiguous guideline, or agree on a task that does not actually measure the intended target. Agreement informs us about protocol reproducibility; task validity, edge cases, provenance, and adjudication errors must also be examined.

Language: Français · English