You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the clean paper output contract pmcgrab.paper.v1, now emitted by
default from the CLI, Paper.to_dict(), Paper.to_json(), and the high-level
processing helpers. The clean contract contains the paper itself:
identifiers, title, abstract, body, images, and tables.
Added --full-json and output_style="full" as the explicit escape hatch
for metadata-rich V4 output.
Changed
Rewrote the README and public package copy around the clean default contract,
image-enabled ingestion workflow, and full-JSON escape hatch.
The default output is now clean paper JSON instead of the full V4 parser
record. This is a breaking change for callers that read article, content, relations, quality, or provenance from default output. Pass --full-json or output_style="full" to keep using the V4 record.
--schema-version is now accepted only with --full-json. Schema V2/V3 are
compatibility modes for full output, not clean paper output.
Migration
If you want the new ingestion-friendly output, no migration is needed. Read paper.title, paper.abstract, paper.body, assets.images, and assets.tables.
If you want the old metadata-rich V4 structure, add --full-json on the CLI
or pass output_style="full" in Python.
Switch to process_single_pmc_with_assets() or --with-images when you want
image binaries on disk alongside the clean JSON.