NER evaluation pipeline
A production-style path from gold generation to benchmark-ready datasets to measured backend comparison — built because I could not trust NER quality without numbers.
ner-gold-generator → ner-dataset →
ner-detector Hard problems
- LLM span offsets hallucinate — entity-first planning + deterministic anchoring
- Strict vs relaxed F1 disagree on salient gold — Doc F1 as primary metric
- LLM quality vs BERT latency — measured per document, not assumed
Engineering bar
- ≥95% test coverage, typed Python, pre-commit, Gitleaks in CI
- Gold JSONL validated on every PR (exact spans, unique anchoring)
- YAML-driven benchmarks; HTML reports from CI
Repos & live reports
All three repos are public. CI publishes validators and GitHub Pages dashboards you can re-run locally or challenge in a PR.
- ner-gold-generator
- ner-dataset — Pages dashboard: https://marfago-labs.github.io/ner-dataset/ ↗
- ner-detector — Pages benchmark: https://marfago-labs.github.io/ner-detector/ ↗
Story
Read the full arc in Building an Evaluation Lab by Accident.