Repository navigation
Record Schema 2.0 update of `atrium_document`
·
12 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Major release on top of v1.4.7-beta: the converter writes docproc instead of the record, and the record moves to schema 2.0 (atrium-project#84), so the major version moves.
Changed
- docproc in place of the record: the layout is written as
atr/docproc-json(the ATR's schema with blocklines[]and the page verdict;--docproc-out, and/reformatreturns it). ocr-postprocess builds the record. - Nothing is refused. A page with an earlier OCR layer, a text layer that does not decode, or no text goes to the ATR (
needsAtr).metadata.routing.pages[]lists every page withpage,routeandtext_layer. - Two workflows (#9):
- Visual: a PDF on its own pages; a DOCX, DOC, ODT or RTF as its own text, placed on the pages of a LibreOffice rendering.
- Textual: ODS, XLSX, XLS, TXT, CSV, TSV and JSON are extracted as they are and never routed to the ATR. A spreadsheet keeps every non-empty cell as the sheet displays it.
- An office page holding only a picture goes to the ATR, as a PDF page does (#84 decision 3): no line outside its header and footer, plus a picture. A page with only a table, a chart or a text box keeps its text.
- Each picture is a
figureblock with itsbboxand nolines,contentorimageRef(#84 decision 6):- a DOCX drawing is boxed on the rendering, and one not found keeps no box (
figures_without_boxin the paradata); - the proposal schema no longer requires
imageRef, and its ask 14 (graphics,tablesin routing) is withdrawn; - with the forced pages, the pages with figure blocks are the ones page-classification classifies (#84 decision 4).
- a DOCX drawing is boxed on the rendering, and one not found keeps no box (
- The rendered PDF is named for every office document as
rendered-pdf,stored: false(#84 decision 5)./reformatreturns it asrendered_pdf, and--rendered-outwrites it, when the ATR or page-classification reads it. Therenderedform field is gone. - One coordinate space: every box is on the displayed page (CropBox, after /Rotate, in pt × UserUnit). A PDF page without text whose rendering shows nothing is routed
empty. - Decode verdicts are the line flags
decode:garbledanddecode:inverted(wereGarbage,Inverted). Words that lose letters are left to scoring. - A DOCX is read in full from its XML, including equations, SmartArt node text and chart text.
- Paradata 3.0 name the original, the seed and the docproc by SHA-512, and
configholds settings only (#84 decision 1c).bench_compare.pynames its files as entries. /describe(parked during the pilot) calls no other tool: the page-classification and ocr-postprocess calls and their settings are gone.- CI runs on pull requests and releases only (atrium-project#40). The hub's workflows are pinned to
ff0a8ea.
Compatibility
- Gone:
ocr_text_layer,OCR_LAYER_DOCUMENT_SHARE,ATRIUM_TEXT_INGEST_PDF_OBJECT_CAPandRENDER_TEXT_COVERAGE;--docx-page-breaksand therenderedform field;/describe's stage settings (PAGE_CLASSIFICATION_URL,OCR_POSTPROCESS_URLand the rest).
- Images stay 415, and an XLSX now needs LibreOffice.
- The samples are synthetic documents;
docproc/light/,docproc/docling/andreports/are this version's.
Also included, parked during the pilot: decisions/document_type.v3.json and its offline tools (#8, atrium-project#83). They are not run by the service.
Images this release certifies (images.json, atrium-project#81):
ghcr.io/ufal/atrium-digital-convert-digital:2.0.0-beta=sha256:09a05798e976f374a304f65b6367d6476726fd033fee225fb4c1cc21613b3eb5ghcr.io/ufal/atrium-digital-convert-api:2.0.0-beta=sha256:44803761643022e4a0ce2fc9924c88d6a8ed0faa5332f1553a7e8a19092f259b
What's Changed
- Doc schema v2 by @K4TEL in #10
- Multiple input formats adaptation - #88 by @K4TEL in #11
- Doc schema v2 edits by @K4TEL in #12
- Doc schema v2 refined by @K4TEL in #13
- Spreadsheets keep every cell as the sheet displays it (#9) by @K4TEL in #14
- Doc samples of real documents removed by @K4TEL in #15
- Documentation and GHA refinements by @K4TEL in #16
- edit for new tag release by @K4TEL in #17
- ufal/atrium-project#84 decisions 1, 3, 5, 6: picture-only office pages, figure blocks, rendered PDF named by @K4TEL in #18
New Contributors
Full Changelog: v1.4.7-beta...v2.0.0-beta