# V2 PDFium evaluation example

This example includes four synthetic one-page memo PDFs generated with Document
Generator 2.0.0, the text-layer baseline's predictions and the evaluation report.

## Try the workflow

The Windows and Linux downloads include a `demo` command that generates sample
documents, prepares parser inputs, runs the baseline and scores its predictions.
Follow the [platform launcher instructions](https://docsetgenerator.com/getting-started#command-line)
to run it. No separate Python installation is needed.

This saved report uses:

- Parser: `pdfium-text-layer-baseline 1.0+156.0.8076.0`
- Task: `ocr` 1.0; normalization: `nfkc-whitespace-v1`

## What the score measures

The baseline reads only the hash-checked neutral PDFs. It extracts electronic
PDF text and has no OCR engine, network fallback or access to the oracle.

| Delivery condition | Cases | CER accuracy | WER accuracy |
| --- | ---: | ---: | ---: |
| Clean text layer | 2 | 100.0% | 100.0% |
| Image-only | 2 | 0.0% | 0.0% |
| Aggregate | 4 | 50.0% | 50.0% |

These measurements describe this synthetic dataset and parser version, not a
general OCR benchmark. The run has no missing or failed cases. Image-only
predictions are successfully read empty text, not failed OCR attempts.

## Included files

- `cases.json`: neutral filenames and input SHA-256 bindings.
- `case_0001.pdf` and `case_0004.pdf`: image-only memos.
- `case_0002.pdf` and `case_0003.pdf`: clean text-layer memos.
- `predictions.jsonl`: measured baseline predictions with parser and case hashes.
- `results.json`: scorer metrics and per-case evidence.
- `report.html`: the same run's static report with no external resources.

The report includes reference text so you can compare the predictions with the
expected output. When testing your own parser, give it only the neutral cases
and keep the answer key separate.

## Snapshot hashes

SHA-256 of each public evidence file:

```text
d33d3e02cf9e2576e6a1d3e3ed455b3f5843e55664fe8114a7043cdaa8afaf72  case_0001.pdf
f9da4c21f9538abf8642a0a71dad4d72a42216c8f05d030207f39bcdb66fa320  case_0002.pdf
c48cf45bcb2d2c53f8d94fca863848d27bdffec85cf679cd59ad225c737ef516  case_0003.pdf
be331d818505e8130e956ad795f27fe7f0c00c954bd6a84fc3c411a482e2752d  case_0004.pdf
3714d4eccd5a43b43a5eec14f03f12a647bf375dc99c9e18f26215087ead2857  cases.json
9f5323a2167c72dc6855a1aeeba03309ed2cdcd98b8830f4eddbff0f24301166  predictions.jsonl
ee458f8518b3d7097089254f24bb83329cdb06dfdc2f2860a032eb2d512467a2  report.html
0e3fea499e917589d0b2229c4a8ab00cbd4843f75b91d9358edddfe86fd3e397  results.json
```
