REVIEW

Review pages before the next parser run

Export review tasks and import quarantine decisions with the included CLI. Label Studio runs separately; the recorded decisions stay tied to the exact documents and page images you reviewed.

Export pages to Label Studio, review them there, and import your decisions to exclude selected documents from later tests.

The packaged CLI exports tasks and imports decisions. Label Studio is a separate application that you install and run yourself. Export the bundled starters to a new directory for this four-PDF memo example:

Windows PowerShell

& '.\_internal\DocumentGenerator_v2.0_cli.exe' demo --write-examples review-examples

Linux AppImage

./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli demo --write-examples review-examples

Linux Flatpak

flatpak run com.docsetgenerator.DocSetGenerator --cli demo --write-examples review-examples

Generate the four PDFs with a Label Studio export:

Windows PowerShell

& '.\_internal\DocumentGenerator_v2.0_cli.exe' generate --suite review-examples/first_run.json --output output/review --export labelstudio

Linux AppImage

./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli generate --suite review-examples/first_run.json --output output/review --export labelstudio

Linux Flatpak

flatpak run com.docsetgenerator.DocSetGenerator --cli generate --suite review-examples/first_run.json --output output/review --export labelstudio

The run writes exports/labelstudio.json and exports/labelstudio-config.xml. Set Label Studio's local file document root to the dataset directory. Tasks carry the selected page rendition, word boxes, transcriptions, and grounded semantic labels. PDF tasks use delivered pages by default. Native DOCX, XLSX, EML, CSV and plain-text tasks automatically use their available pristine previews; each task records its actual rendition. Use --export-rendition pristine to select pristine pages for every task. Missing required delivered PDF pages still fail validation.

DECIDE + IMPORT

Record why a page leaves the set

Accept or quarantine

Mark a page Accept or Quarantine and include a reason. A quarantined page excludes the entire artifact case from later bundle and score operations. Skipped, unreviewed, accepted, and predicted labels do not quarantine it.

Keep provenance

Each imported decision binds to the original artifact hash, page rendition, image path, image hash, and timestamp. A changed artifact or reviewed image invalidates a stale decision.

After reviewing in Label Studio, export the annotations as JSON and save them as reviewed-labelstudio.json in your working folder. Import the decisions:

Windows PowerShell

& '.\_internal\DocumentGenerator_v2.0_cli.exe' evaluate quarantine --from reviewed-labelstudio.json --dataset output/review --out review/quarantine.json

Linux AppImage

./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli evaluate quarantine --from reviewed-labelstudio.json --dataset output/review --out review/quarantine.json

Linux Flatpak

flatpak run com.docsetgenerator.DocSetGenerator --cli evaluate quarantine --from reviewed-labelstudio.json --dataset output/review --out review/quarantine.json

Bundle the cases that remain:

Windows PowerShell

& '.\_internal\DocumentGenerator_v2.0_cli.exe' evaluate bundle --dataset output/review --task ocr --out handoff/reviewed --quarantine review/quarantine.json

Linux AppImage

./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli evaluate bundle --dataset output/review --task ocr --out handoff/reviewed --quarantine review/quarantine.json

Linux Flatpak

flatpak run com.docsetgenerator.DocSetGenerator --cli evaluate bundle --dataset output/review --task ocr --out handoff/reviewed --quarantine review/quarantine.json

Run your parser on the cases in handoff/reviewed, save reviewed-predictions.jsonl, then score with the same quarantine file:

Windows PowerShell

& '.\_internal\DocumentGenerator_v2.0_cli.exe' evaluate score --oracle handoff/reviewed_oracle --predictions reviewed-predictions.jsonl --out reports/reviewed --quarantine review/quarantine.json

Linux AppImage

./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli evaluate score --oracle handoff/reviewed_oracle --predictions reviewed-predictions.jsonl --out reports/reviewed --quarantine review/quarantine.json

Linux Flatpak

flatpak run com.docsetgenerator.DocSetGenerator --cli evaluate score --oracle handoff/reviewed_oracle --predictions reviewed-predictions.jsonl --out reports/reviewed --quarantine review/quarantine.json

The quarantine file is separate from the source dataset. Bundle and score list excluded cases and reasons, and a changed decision creates a new subset identity. Comparison refuses reports with different subsets.

MANUAL LISTS

Use a small JSON exclusion list when needed

A manual list may contain case IDs or objects with case_id or artifact_id, a reason, and an optional current hash. Conflicting decisions must be resolved before import. Manual artifact decisions remain distinguishable from page reviews.

Review does not rewrite truth. The canonical page, delivered rendition, and image hash remain available in the saved quarantine evidence. The source dataset is never modified by importing decisions.

REVIEW RECORDS

Keep decisions tied to the files you reviewed

Review behaviorHow to use it
Review decisions identify the exact document and page image by hash.Review pages in Label Studio, then import the decisions with the CLI.
Excluded cases and reasons remain visible in bundle and score outputs.Use quarantine to remove a case from evaluation. It leaves the source file unchanged.
Changed documents or page images invalidate earlier review decisions.Review the updated files before using them in a new evaluation subset.