Collects code for generating datasets on Swiss legal translations
Set up conda: conda create --name swiss_legal_translations python=3.12
Install requirements: pip install -r requirements.txt
- Laws:
python -m laws.prepare_dataset - Decision Summaries:
python -m decision-summaries.prepare_dataset - Press Releases:
python -m press-releases.prepare_dataset
If you find this repository helpful, feel free to cite our publication SwiLTra-Bench: The Swiss Legal Translation Benchmark:
@misc{niklaus2025swiltrabenchswisslegaltranslation,
title={SwiLTra-Bench: The Swiss Legal Translation Benchmark},
author={Joel Niklaus and Jakob Merane and Luka Nenadic and Sina Ahmadi and Yingqiang Gao and Cyrill A. H. Chevalley and Claude Humbel and Christophe Gösken and Lorenzo Tanzi and Thomas Lüthi and Stefan Palombo and Spencer Poff and Boling Yang and Nan Wu and Matthew Guillod and Robin Mamié and Daniel Brunner and Julio Pereyra and Niko Grupen},
year={2025},
eprint={2503.01372},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.01372},
}