Repository navigation
Record Schema 2.0 update of `atrium_document`
·
11 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
Major release on top of v1.15.4-beta: the record moves to schema 2.0 (atrium-project#84), so the major version moves.
New
- The record builder:
build_record.pyandPOST /build_recordbuild the record from a docproc, whoever wrote it. Every page gets a row, and lines come in reading order with their docproc block, text source and box precision. - Mixed documents are built from the ATR's docproc and digital-convert's (
--text-layer-docproc,text_layer_docproc):- the text layer's exact lines are kept;
- the ATR's lines fill the forced pages and the blocks no kept line falls into;
- a forced page takes the ATR's lines, for an office document as for a PDF (#84 decision 3).
- digital-convert's
figureblocks (no lines, noimageRef) are read as blocks without lines (#84 decision 6).
Changed
- Every line is scored with one model, then the batch's document passes. A block scored as one unit is marked
unit: blockand kept out of the page score; an empty page has no score. /processand/score_recordanswer in the record's field names:line(wasline_num),categ(wascategory), andpage_indexandpage(werepageandpage_label)./infoline_fieldsfollows. docproc's decode flags read asdecode:garbledanddecode:inverted.- Spreadsheets keep every cell: an ODS row keeps each non-empty cell as the sheet displays it (atrium-digital-convert#9).
- Paradata 3.0 name the docproc and seed read and the record written, by distribution name and SHA-512.
- The batch scripts keep only settings and models in
config(#84 decision 1c). Every file they read or write is named by file name and SHA-512,stored: false.classify_TEXT.pyandaggregate_STAT.pyalso name the records they write. - No calculated licence anywhere; an RO-Crate root names
#no-licence-asserted. - CI runs on pull requests and releases only (atrium-project#40). The hub's workflows are pinned to
ff0a8ea.
Fails the job instead of writing a partial record
- Each of these fails the job:
- a docproc that cannot be read;
- a page that was not read;
- a page that needs the ATR, sent without the ATR's docproc;
- two docprocs that disagree on pages, forced pages or page sizes.
/score_recordanswers a line it cannot score whole with 422limit_exceeded.
Compatibility
- Records are schema 2.0; a 1.x record is migrated as it is read.
ocr_handoff,skipped_decode_verdictandATRIUM_TEXT_INGEST_PDF_OBJECT_CAPare gone. The batch CSVs keep their column names.data_samples/RECORD/anddata_samples/paradata/(the records and one batch run) are this version's.
Also included, parked during the pilot: tools/decide_lines.py and its decision files (atrium-project#83). They are not run by the service or the pipeline.
Images this release certifies (images.json, atrium-project#81):
ghcr.io/ufal/atrium-ocr-postprocess:2.0.0-beta=sha256:e8196d49ff441bcf89b447422484c475f091ab6c3e3624a5aec25e1642333f83ghcr.io/ufal/atrium-ocr-postprocess-api:2.0.0-beta=sha256:e9969c344a9603b9b09d8c3df187927647a77bb389fde25f9fcd8fcd7404e932
What's Changed
- Doc schema v2 by @K4TEL in #11
- Multiple input formats adaptation - #88 by @K4TEL in #12
- Doc schema v2 edits by @K4TEL in #13
- Doc schema v2 refined by @K4TEL in #15
- Spreadsheets: every ODS cell as the sheet displays it by @K4TEL in #16
- Documentation and GHA refinements by @K4TEL in #17
- edits for new tag release by @K4TEL in #18
- ufal/atrium-project#84 decisions 1, 3, 6: batch paradata file entries, figure blocks read by @K4TEL in #19
New Contributors
Full Changelog: v1.15.4-beta...v2.0.0-beta