Sub topic 17
Reporting annotation quality
This chapter assumes you can compute observed agreement, Cohen's kappa, Fleiss' kappa and span-level F1, and that you have run a pilot round and adjudicated disagreements. It covers how to report those results so another team can judge whether your dataset fits their purpose.
Why reporting matters
A single number such as "kappa = 0.72" tells a reader very little. They cannot tell who the annotators were, how many items were double-labeled, which measure you used, or whether the number comes from the pilot or from the final data. Two datasets with the same kappa can differ widely in quality.
A good report lets a reader do three things:
- Judge whether the labels are reliable enough for their use.
- Reproduce your agreement calculation.
- Understand what the gold labels represent, and what they leave out.
What to include
Report the process, the measures, and the limits.
Task and schema
State the task, the label set with a short definition of each label, and the unit of annotation (document, sentence, or span). Say which guideline version the annotators used. If the guidelines changed after the pilot, say how.
Annotators
Report how many annotators worked on the data and how they were recruited (domain experts, trained staff, crowd workers). Say how they were trained and whether they could discuss items with each other. Do not include personal identifying details. Give only what is relevant, such as language fluency or domain background.
Agreement sample
Say how many items were annotated by more than one person, and how those items were chosen. Agreement computed on 50 hand-picked easy items is not comparable to agreement on a random 10% sample. State whether every item had the same number of annotators. This decides whether Fleiss' kappa is valid or whether you need Krippendorff's alpha.
Measures
Name the exact measure and its settings:
- Cohen's kappa for two annotators, with the weighting scheme if you used one (for example, quadratic weights for 1–5 ratings).
- Fleiss' kappa or Krippendorff's alpha for more than two annotators, or when labels are missing.
- Span-level F1 for entity annotations, including whether a match required exact boundaries and the same label.
Also report observed agreement next to the chance-corrected value. A reader can see both the raw consistency and how much of it survives the correction.
Reporting more than one number
Per-label and overall
An overall kappa can hide a label that annotators never agree on. Report per-label agreement or the confusion matrix. In the earlier example, annotators confused "neu" with "pos". A table of per-label figures shows that directly.
| Label | Items marked by either annotator | Both agreed | Agreement |
|---|---|---|---|
| pos | 5 | 3 | 0.60 |
| neu | 3 | 1 | 0.33 |
| neg | 4 | 4 | 1.00 |
The "agreement" column here is the share of items where both annotators gave that label, out of items where either did. Define such a column in the report, since it is not a standard statistic.
Prevalence and class balance
Kappa depends on how often each label occurs. If one label covers 95% of items, chance agreement is high and kappa can be low even when observed agreement is also high. Always report the label distribution so a reader can interpret the kappa value. If the labels are heavily skewed, add observed agreement and per-label figures.
Uncertainty
With few double-labeled items, a kappa estimate is noisy. Ten items give a value that could move a lot with a single changed label. Report the sample size and, when you can, a confidence interval. A bootstrap over items is a simple way to get one.
import random
from sklearn.metrics import cohen_kappa_score
def bootstrap_kappa_ci(a, b, n_boot=2000, alpha=0.05, seed=0):
rng = random.Random(seed)
n = len(a)
scores = []
for _ in range(n_boot):
idx = [rng.randrange(n) for _ in range(n)]
sa = [a[i] for i in idx]
sb = [b[i] for i in idx]
if len(set(sa) | set(sb)) < 2:
continue # kappa is undefined when only one label appears
scores.append(cohen_kappa_score(sa, sb))
scores.sort()
lo = scores[int(len(scores) * alpha / 2)]
hi = scores[int(len(scores) * (1 - alpha / 2)) - 1]
return lo, hi
ann1 = ["pos", "pos", "neg", "neg", "pos", "neu", "neg", "pos", "neu", "neg"]
ann2 = ["pos", "neg", "neg", "neg", "pos", "neu", "neg", "pos", "pos", "neg"]
print(round(cohen_kappa_score(ann1, ann2), 3))
print([round(x, 3) for x in bootstrap_kappa_ci(ann1, ann2)])The point estimate is 0.677. The interval from this tiny sample will be wide, which is the honest picture of how little ten items can show.
Interpreting for the reader
Scales such as the Landis and Koch bands (for example, 0.61–0.80 as "substantial") are conventions, not thresholds that guarantee quality. A kappa of 0.68 may be excellent for a subjective task like sarcasm detection and poor for a part-of-speech task. Say what level you expected and why, and what you did about any gap.
Reporting the full pipeline
Agreement is only one stage. The reader also needs to know what happened afterward.
Describe these points:
- Guideline changes. List the main revisions made after the pilot and the disagreements that motivated them.
- Agreement before and after. If you re-measured agreement after revising the guidelines, report both values. This shows whether the revision helped.
- Adjudication. Say who resolved conflicts, whether by a senior annotator, a majority vote, or a discussion. Report how many items needed adjudication.
- Gold label meaning. State that gold labels are a resolved decision, not ground truth. Note any items where the disagreement was real ambiguity rather than error, and whether you kept or dropped them.
A compact reporting template
A short structured block, kept next to the dataset, covers most of what a reader needs. The code below builds one from the example data.
import json
from collections import Counter
from sklearn.metrics import cohen_kappa_score
ann1 = ["pos", "pos", "neg", "neg", "pos", "neu", "neg", "pos", "neu", "neg"]
ann2 = ["pos", "neg", "neg", "neg", "pos", "neu", "neg", "pos", "pos", "neg"]
n = len(ann1)
report = {
"task": "3-class sentiment",
"labels": ["pos", "neu", "neg"],
"guideline_version": "v2",
"annotators": 2,
"double_labeled_items": n,
"selection": "random sample from pilot pool",
"observed_agreement": sum(x == y for x, y in zip(ann1, ann2)) / n,
"cohen_kappa": round(cohen_kappa_score(ann1, ann2), 3),
"label_distribution_ann1": dict(Counter(ann1)),
"label_distribution_ann2": dict(Counter(ann2)),
"adjudication": "senior annotator resolved all disagreements",
}
print(json.dumps(report, indent=2))Common mistakes
- Reporting only percent agreement. It ignores chance and rewards skewed label sets.
- Mixing measures. Do not compare a Cohen's kappa on one dataset with an alpha on another without saying so.
- Computing kappa on spans. Kappa needs a fixed set of items. For entities, report span F1 and state the matching rule.
- Hiding the sample. Say how the agreement subset was chosen and how large it was.
- Reporting pilot agreement as final. Label the stage each number comes from.
- Omitting disagreement handling. Readers cannot trust gold labels if they cannot tell how conflicts were resolved.
Exercise
A team reports "Cohen's kappa = 0.81" for a spam-detection dataset. List four pieces of information you would ask them to add before trusting the number.
Show answer
Any four of these: how many items were double-labeled and how they were selected; the label distribution (spam may be rare, which affects kappa); observed agreement and per-label or confusion-matrix results; a confidence interval or sample size; which guideline version and stage (pilot or final) the number comes from; who the annotators were and how they were trained; how disagreements were adjudicated.
Exercise
Two annotators label named entities, and you want to report agreement. Which measure do you use, what must you state about it, and why not kappa?
Show answer
Use span-level F1, treating one annotator as the reference. State the matching rule, such as exact start and end offsets plus the same label. Kappa needs a fixed set of items to rate, and span tasks have no fixed item set, because annotators choose which spans exist.