Skip to main content
Home

Translator of XML files - ATRIUM

Translates the text inside XML files and writes it back without changing the structure: tags, namespaces and OAI-PMH envelopes are kept. The document's root element selects the mode, unless one is named. In ALTO mode each text block is translated as a whole and line by line, and the fluent translation is realigned to the original lines and word positions. In metadata mode the fields named by XPaths are translated, for example in AMČR records; the translation replaces the source text or is added beside it with language labels. The output can be validated against an XSD schema; AMČR's own schema accepts replaced records only.

The source language is detected per text block or field, or given. Domain terms can be held to their agreed translations from a vocabulary, matched as phrases or by UDPipe lemma; a helper takes the Czech–English term pairs of the AMČR vocabularies and the TEATER thesaurus from the vocabulary that ATRIUM keyword extraction publishes. Backends: LINDAT Translation (CUBBITT), self-hosted CTranslate2 models, or a language model behind an OpenAI-compatible API, self-hosted or a provider's. A reply that comes back empty, cut short or looping is requested again and never written. A CSV log beside each output pairs source and target text for review, and every run records its provenance (paradata).

Command-line tool, or REST API container image (ghcr.io/ufal/atrium-translator-api, /translate), which reads the same inputs the same way and returns, on request, the log, the XSD verdict and the ATRIUM document record.

The code is MIT.

ComponentLicence or termsUsed when
FastText language identificationCC BY-NC 4.0The source language is detected, not given.
LINDAT Translation (CUBBITT)LINDAT Terms of Use; CUBBITT's models CC BY-NC-SA 4.0The default backend.
UDPipe 2, through the LINDAT serviceLINDAT Terms of Use; models CC BY-NC-SA 4.0; engine MPL 2.0A vocabulary is applied with the LINDAT backend: terms are matched by lemma.
AMČR vocabularies, TEATER thesaurusCC0A vocabulary is applied.
CTranslate2MITThe self-hosted ct2 backend.
EuroLLM, MADLAD-400Apache-2.0A ct2 model of these families.
Opus-MTCC BY 4.0A ct2 Opus-MT model.
NLLB-200CC BY-NC 4.0A ct2 NLLB-200 model.
Qwen3.8-27B, self-hostedApache-2.0The OpenAI-compatible backend with this model.
A provider's language-model APIThe provider's terms of serviceThe OpenAI-compatible backend with a provider's model.

A run whose components are all under permissive licences needs a self-hosted permissive model and the source language given. Each run lists the components it used, each with its own licence or terms. None of these is the licence of the output: the rights in an output depend first on the source document, and only their holder can state them (Licences and paradata).

European Union flag

The SSH Open Marketplace is maintained and will be further developed by three European Research Infrastructures - DARIAH, CLARIN and CESSDA - and their national partners. It was developed as part of the "Social Sciences and Humanities Open Cloud" SSHOC project, European Union's Horizon 2020 project call H2020-INFRAEOSC-04-2018, grant agreement #823782.

CESSDACLARINDARIAH-EU