ATRIUM — ÚFAL documentation¶
The Institute of Formal and Applied Linguistics (ÚFAL, Charles University) builds six tools for ATRIUM. Together they take archival documents, such as typewritten reports, handwritten field notes, photographs, drawings and born-digital files, and turn them into structured, searchable records. In the AMČR pilot they process the documents of the Archaeological Map of the Czech Republic (AMČR), with ARÚP, the Institute of Archaeology in Prague. This site explains what each tool does and how they fit together. Terms such as ATR, docproc and paradata are explained in the Glossary.
What ATRIUM is¶
ATRIUM (Advancing fronTier Research In the arts and hUManities) is an EU project. It connects four European research infrastructures: DARIAH (arts and humanities), ARIADNE (archaeology), CLARIN (language technologies) and OPERAS (open scholarly communication). More at atrium-research.eu, and in the project presentation on Zenodo.
This site documents ÚFAL's part: six tool repositories and the hub that holds them together, seven repositories in all.
Start here¶
Find the line that describes you:
| You are | Start with | Then |
|---|---|---|
| archive or collection staff | For archives | Licences and paradata · Glossary |
| running the services | Operations | Production pilot, which links each service's runbook |
| calling a tool from your own code | each tool's README, whose quick start runs from a checkout | Workflows · The document contract · Agent skills |
| developing the tools | Architecture | Contributing standards · Development history |
| managing or coordinating the project | Status | Production pilot · Repository map |
| judging the methods and results | Pipelines | each tool's evaluation pages, from the documentation map in its README |
Or by question:
| If you want to… | Read |
|---|---|
| look up an unfamiliar word | Glossary |
| see what each tool does, step by step | Workflows |
| see what passes from one tool to the next | Pipelines |
| know what a record written by these tools looks like | The document contract |
| run a tool as a service, or on Kubernetes | Operations |
| let a coding agent use a tool | Agent skills |
| know what every field and label means | Schemas · SKOS & the ATRIUM vocabulary |
| publish results to a repository or catalogue | RO-Crate export |
| describe a tool's workflow on the SSH Open Marketplace or in Galaxy | Workflows |
| read about a standard, model or service the tools use | External tools & services |
| find which repository owns what | Repository map |
| change shared code, or contribute | Architecture · Contributing standards |
The seven repositories¶
-
page-classification
Sorts each scanned page into one of eleven page types, which say what the page holds: typed, printed or handwritten text, tables, drawings, photographs. In the AMČR pipeline it classifies the pages that go to the ATR and the pages with a picture, chart or drawing, beside it; the categories describe the pages and route nothing.
-
ocr-postprocess
Builds the document record from docproc, the page layout that the ATR or digital-convert wrote, and grades every text line: its language and a quality label, so you know which lines to use. For research collections it also reads ALTO, other OCR formats and text-bearing files.
-
translator
Translates the free-text fields of AMČR metadata records in place, apart from the document pipeline: a job run when a record is archived. Every tag and namespace stays; only the text changes. ALTO pages can be translated too, for research.
-
nlp-enrich
Reads the record and adds each word's base form, part of speech and grammar, and the names of people, places and organisations, using the UDPipe and NameTag services of LINDAT, the Czech language-resource infrastructure. It also writes a TEITOK file that keeps every word's place on the page.
-
keyword-extract
Gives documents two kinds of keyword: statistical ones taken from the text, and terms from AMČR's keyword lists and the TEATER thesaurus, chosen by a language model.
-
digital-convert
Reads born-digital files (PDF and office documents on their pages; sheets and text files as text) into docproc, without OCR, and gives every page a verdict on its text layer. If any page needs text recognition, the whole document goes through the ATR, with those pages marked.
-
atrium-project, the hub
The code every tool shares, the checks they all run, the end-to-end tests, and this site.
How the tools work together¶
flowchart LR
UP[/"AMČR upload"/] --> DC[digital-convert]
UP -- "an image" --> ATR["the ATR<br/>(AIS CR)"]
DC -- "a page needs the ATR" --> ATR
DC -. "those pages" .-> PC[page-classification]
DC -- "docproc" --> OP[ocr-postprocess]
ATR -- "docproc" --> OP
PC -. "page categories" .-> OP
OP -- "record" --> NLP[nlp-enrich]
NLP -- "record" --> KW[keyword-extract]
ARC[/"an archived record"/] --> TR["translator<br/>metadata-en"]
digital-convert gives every page of a PDF or office file a verdict on its text layer. If any page needs text recognition, the whole document goes through the ATR, AIS CR's text-recognition service, and page-classification classifies those pages and the pages with a picture, chart or drawing beside it. An office document's text is read from the file; only a page of it with no text of its own that shows a picture, such as a pasted scan, needs the ATR, as a PDF page without text does. ocr-postprocess builds the record from the layout, docproc, and nlp-enrich and keyword-extract add to it. A step that cannot finish fails the job, and AMČR stores nothing of it. The translator runs apart, when a record is archived. The route in full: Pipelines.
Six tools, each in its own repository. Each tool is a command-line program and an HTTP service built from the same code. Each ships as container images. The tools need very different environments: image models for page types, small language models that run on a CPU for line quality, LINDAT's remote services for language analysis and translation, and a language-model service for the controlled keywords. So they are not combined into one program.
One record per document. A JSON file, <doc_id>.document.json, ties the stages together.
ocr-postprocess builds it, and each later stage adds the blocks it owns: by the end it holds the pages, the
text lines, the page categories, the linguistic layer, the entities and the keywords. It holds no run data:
what each run read, wrote and used is in its paradata, kept beside each output. See
The document contract.
One hub. atrium-project holds the code every tool shares: the record, the paradata, the licence
catalogue, the vocabulary and the service contract. It hands out identical copies of that code, runs the
checks every tool calls, and runs the end-to-end test of all the tools together. See
Architecture.
Built here, run by the partners. ÚFAL builds, tests and publishes the container images. The partner institutes of archaeology run them on their own infrastructure, next to their own collections: in the pilot, AMČR's pipeline calls them. See Operations.
About this site¶
Every page here is written, not generated. It explains how the parts fit together, and ends with a
Sources table naming what it was written from. Each tool's own documentation, its README and its
docs/ pages, holds the details; these pages connect them.
The site's source is docs_site/ in the hub. A pull request builds it with mkdocs build --strict,
which fails on any broken link or anchor between pages. A merge to main publishes it to the
gh-pages branch.