A Transformer-based Approach of Normalization of Historical French Text
Abstract
Historical French texts pose unique challenges for modern readers and NLP systems due to highly inconsistent spelling and scarce standardized resources. This paper presents a system for the normalization of early modern French, focusing on enhanced corpus construction and customized sub-word tokenization. Existing aligned corpora were combined with a newly curated dataset based on La Gazette, a rich and stylistically coherent periodical, to provide greater coverage and diversity. To address the orthographic variation typical of the period, a custom sub-word tokenizer was trained to better capture morphological patterns, supporting a Transformer-based sequence-to-sequence model. The approach demonstrates how tailored data preprocessing and tokenization improve the accuracy and robustness of automatic normalization. This work contributes valuable resources and methods for processing historical French and lays the groundwork for broader applications in digital humanities and historical linguistics.
References
- Reul, C., Wick, C., Nöth, M., Büttner, A., Wehner, M., & Springmann, U. (2021). Mixed model OCR training on historical Latin script for out-of-the-box recognition and finetuning. In: Proceedings of the 6th International Workshop on Historical Document Imaging and Processing. pp. 7-12.
- Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need. Advances in neural information processing systems, 30: 5998-6008.
- Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). Bert: Pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers). pp. 4171-4186.
- Junczys-Dowmunt, M., Grundkiewicz, R., Dwojak, T., et al. (2018). Marian: Fast neural machine translation in C++. arXiv preprint arXiv: 1804.00344.
- Gabay, S., Gambette, P. (2022) FreEM-corpora/FreEMnorm: FreEM norm Parallel corpus (1.0.1). Zenodo, Geneva.
- Eyharabide, V., Likforman-Sulem, L., Orlandi, L. M., et al. (2023). Study of historical Byzantine seal images: the BHAI project for computer-based sigillography. In: Proceedings of the 7th International Workshop on Historical Document Imaging and Processing. pp. 49-54.
- Wick, C., Reul, C., Puppe, F. (2020) Calamari - A High-Performance Tensorflow-based Deep Learning Package for Optical Character Recognition. Digital Humanities Quarterly 14(1).
- Kraken OCR GitHub repository. (2024) https: //github.com/mittagessen/kraken.
- Gabay, S., Gambette, P. (2022) FreEM-corpora/FreEMnorm: FreEM Norm Parallel (Original vs. Normalised) Corpus for Early Modern French. Zenodo, Geneva. https: //doi.org/10.5281/zenodo.6481179
- Gabay, S., Clérice, T. (2024) DEFI-COLaF – Theatre-17e (Version 1.0). Geneva University; INRIA Paris.
- Gallica Digital Library. (2024) https: //gallica.bnf.fr/ark: /12148/cb32780022t/date& rk=21459; 2.
- Sennrich, R., Haddow, B., & Birch, A. (2015). Neural machine translation of rare words with subword units. arXiv preprint arXiv: 1508.07909.
- Batsuren, K., Vylomova, E., Dankers, V., et al. (2024) Evaluating subword tokenization: Alien subword composition and oov generalization challenge. arXiv preprint arXiv: 2404.13292.
- Hugging Face Tokenizers GitHub repository.(2024). https: //github.com/huggingface/tokenizers.
- Levenshtein, V. I. (1966). Binary codes capable of correcting deletions, insertions, and reversals. In Soviet Physics Doklady. New York. pp. 707–710.