Research Article

A Transformer-based Approach of Normalization of Historical French Text

Sicong Deng*
College of Foreign Languages and Cultures, Sichuan University, Chengdu, 610207, China

* Corresponding author: [email protected]

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.

Keywords: Transformer; Corpus; Normalization; Historical French; Sub-word Tokenization
Published: August 26, 2025
DOI: 10.54254/2755-2721/2025.BJ26308
Volume: ACE Vol.177
pp. 213-219
Download PDF

References

  1. 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.
  2. Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need. Advances in neural information processing systems, 30: 5998-6008.
  3. 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.
  4. Junczys-Dowmunt, M., Grundkiewicz, R., Dwojak, T., et al. (2018). Marian: Fast neural machine translation in C++. arXiv preprint arXiv: 1804.00344.
  5. Gabay, S., Gambette, P. (2022) FreEM-corpora/FreEMnorm: FreEM norm Parallel corpus (1.0.1). Zenodo, Geneva.
  6. 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.
  7. 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).
  8. Kraken OCR GitHub repository. (2024) https: //github.com/mittagessen/kraken.
  9. 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
  10. Gabay, S., Clérice, T. (2024) DEFI-COLaF – Theatre-17e (Version 1.0). Geneva University; INRIA Paris.
  11. Gallica Digital Library. (2024) https: //gallica.bnf.fr/ark: /12148/cb32780022t/date& rk=21459; 2.
  12. Sennrich, R., Haddow, B., & Birch, A. (2015). Neural machine translation of rare words with subword units. arXiv preprint arXiv: 1508.07909.
  13. Batsuren, K., Vylomova, E., Dankers, V., et al. (2024) Evaluating subword tokenization: Alien subword composition and oov generalization challenge. arXiv preprint arXiv: 2404.13292.
  14. Hugging Face Tokenizers GitHub repository.(2024). https: //github.com/huggingface/tokenizers.
  15. Levenshtein, V. I. (1966). Binary codes capable of correcting deletions, insertions, and reversals. In Soviet Physics Doklady. New York. pp. 707–710.