Span F1
Score an entity recogniser by how many tokens it tagged correctly and you can report over ninety percent for a system that found almost nothing — most tokens belong to no entity, so guessing "outside" everywhere is nearly right. Span F1 is the metric that refuses to hand out that credit.
The unit is the span
It evaluates whole predicted spans instead of individual tokens, and the usual rule is strict:
- A predicted span counts as correct only if its start, its end and its label all match a gold span exactly.
- Precision is correct spans over predicted spans, recall is correct spans over gold spans, and span F1 is their harmonic mean.
- Partial overlap earns nothing: tagging "York" inside "New York City" is a false positive and a missed gold span at the same time.
In practice
The reference implementation is conlleval, the scoring script from the CoNLL-2003 shared task, and seqeval is its drop-in Python equivalent; both read BIO or BILOU tagged output directly. Scores are normally micro-averaged across entity types, so frequent types dominate — a macro average per type is what reveals that the rare label is quietly being ignored.
Why it matters
Span F1 is the number that makes named entity recognition, chunking, slot filling and span-based question answering comparable across systems and across years. It also keeps a model honest about boundaries, which is exactly where extraction earns its value: a date half captured is a date you cannot use, and a metric that awarded it partial credit would hide the failure.
Span F1 is the standard metric for span extraction tasks: a predicted span counts as correct only when its boundaries and its type match a gold span exactly, and precision and recall over spans are combined as a harmonic mean. It replaces token-level accuracy, which the dominant non-entity class inflates beyond usefulness, and it penalises boundary errors in full — the behaviour required when an extracted span has to be used as a value.
Suppose someone is asked to highlight every person's name in a long contract. Marking the right pages is not enough — the highlight has to start and stop in the right place. "Maria" when the name is "Maria Fernandes" is not half a success; it is the wrong name.
Span F1 is the score that grades highlighting that way. It counts a highlight as correct only when the whole thing matches exactly, then balances two things: how much of what was highlighted turned out to be right, and how much of what should have been highlighted was actually found. It exists because a gentler score would flatter software that quietly marks almost nothing.