Evaluating Parsing Quality
In this article
- Build a gold set of pages whose ground truth is written before any parser runs, chosen to match the corpus, hard pages included.
- Count per gold item what a parser left out, made up, put in the wrong place or on the wrong page, and report the counts per slice of document type.
- Use a threshold set before the run to decide which slices are indexed automatically, which documents are quarantined for review, and whether a new parser version may ship.
- Explain why a confidence score, a single text score or a retrieval test cannot replace this check.
Overview
A parser can drop a table row, put a cell under the wrong column or write a line the page never held, and nothing downstream says so: the index stores it and the support assistant repeats it.
In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. Before the assistant can search them, Brightline's help pages, router manuals, staff handbook and past conversations are read from the systems where they are kept and turned into documents that a search index can take.
The map: write down, before any parser runs, what a fixed set of pages must yield. Run the parser, count four kinds of error per item, report the counts per kind of page, and compare them with a bar set in advance. The bar decides what is indexed automatically, what waits for a person, and whether a new parser version may ship. The company, its pages and every count below are made up.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Where a parse error hides
- A gold set written before the run
- Four counts per item
- Slice by slice
- A threshold set before the run
- Reading the pages yourself
- What the confidence score is worth
- The same gold set for every new version
- The pattern in real tools
- Common mistakes
- Sources
- Check yourself, 13 questions