Skip to content

Record Schema 2.0 update of `atrium_document`

Choose a tag to compare

@github-actions github-actions released this 28 Nov 11:49
· 10 commits to master since this release
Immutable release. Only release title and notes can be modified.

Major release on top of v1.7.8-beta: the record moves to schema 2.0 (atrium-project#84), so the major version moves. In the AMČR pipeline the translator translates the record's metadata (metadata-en).

Breaking

  • Metadata mode needs the field list with each request: the service's xpaths form field (422 missing_xpaths without it), or the command line's --xpaths FILE.
    • AMCR_FIELDS_PATH and the config's fields = are gone.
    • amcr-fields.example.txt is an example only. The list of fields is AMČR's (ARUP-CAS/aiscr-webamcr#3570) and comes with each job.
  • The command line refuses a metadata run without fields (exit 1) before anything is translated.

Changed

  • Nothing is written into the record. Paradata 3.0 name metadata in and metadata-en out by SHA-512, with the field list, backend and model as parameters and no field text.
  • config holds settings only (#84 decisions 1c and 2b):
    • the vocabulary, a local XSD and the field list are inputs entries by file name and SHA-512, stored: false;
    • each _log.csv the command line writes is an output entry, without its rows;
    • /info keeps the vocabulary's SHA-256.
  • Fail-fast: a segment left in the source language, or a UDPipe error answer, refused connection or timeout, fails the document (command line exit 3, service 500). A usage error found after a run started leaves paradata that say failed.
  • ct2 with EuroLLM: a one-line source stops at the end of its line, and a reply that only echoes the prompt is continued once. EuroLLM-1.7B used to run on past short fields.
  • CI runs on pull requests and releases only (atrium-project#40); the smoke test and the LINDAT check run by dispatch. The hub's workflows are pinned to ff0a8ea.

Compatibility

  • Records are schema 2.0; a 1.x record is migrated as it is read.
  • The two AMČR replace folders are made again with this version: in-place_translated_files/xml on LINDAT, and ct2_translated_files/xml with EuroLLM-1.7B. The ALTO and append folders stay as made, without paradata.
  • ctranslate2 ≥ 4.9.0 and sentencepiece ≥ 0.2.3 for the optional ct2 backend.

Images this release certifies (images.json, atrium-project#81):

  • ghcr.io/ufal/atrium-translator:2.0.0-beta = sha256:3ca6f595965e37002b1a34b20b8593ef15c454c5b855855ffbec169fc5efc04e
  • ghcr.io/ufal/atrium-translator-api:2.0.0-beta = sha256:1358e26f9729332ab1c90e62d7dce362df77e96cf723166a8141a5317599bd7f

What's Changed

New Contributors

  • @K4TEL made their first contribution in #60

Full Changelog: v1.7.8-beta...v2.0.0-beta