arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.18722cs.CVcs.CL
收藏

在PyLaia开源库中利用语言模型改进自动文本识别

Improving Automatic Text Recognition with Language Models in the PyLaia Open-Source Library

TEKLIA(泰科利亚)

Solène Tarride, Yoann Schneider, Marie Generali-Lince, Mélodie Boillet, Bastien Abadie, Christopher Kermorvant

AI总结:

本文通过在PyLaia开源库中集成统计语言模型和可靠的置信度分数,提出一种无需额外数据和专业知识即可自动调优语言模型的解码方法,在十二个数据集上平均将词错误率降低13%、字符错误率降低12%。

摘要:

PyLaia是最受欢迎的自动文本识别(ATR)开源软件之一,在速度和准确性方面表现出色。在本文中,我们概述了近期对PyLaia库的贡献,重点是在解码过程中引入可靠的置信度分数以及集成统计语言模型。我们的实现提供了一种简便的方法,可以在不同层级上将PyLaia与n-grams语言模型相结合。这项工作的一大亮点是语言模型实现了完全的自动调优:无需任何专业知识,也无需任何额外数据,即可轻松构建和使用它们。为了证明我们贡献的重要性,我们在十二个数据集上评估了PyLaia的性能,包括使用和不使用语言建模的情况。结果表明,使用小型语言模型进行解码平均将词错误率降低了13%,字符错误率降低了12%。此外,我们还对置信度分数进行了分析,并强调了校准技术的重要性。我们的实现已在官方PyLaia仓库公开,并在Hugging Face上发布了十二个开源模型。

英文摘要:

PyLaia is one of the most popular open-source software for Automatic Text Recognition (ATR), delivering strong performance in terms of speed and accuracy. In this paper, we outline our recent contributions to the PyLaia library, focusing on the incorporation of reliable confidence scores and the integration of statistical language modeling during decoding. Our implementation provides an easy way to combine PyLaia with n-grams language models at different levels. One of the highlights of this work is that language models are completely auto-tuned: they can be built and used easily without any expert knowledge, and without requiring any additional data. To demonstrate the significance of our contribution, we evaluate PyLaia's performance on twelve datasets, both with and without language modelling. The results show that decoding with small language models improves the Word Error Rate by 13% and the Character Error Rate by 12% in average. Additionally, we conduct an analysis of confidence scores and highlight the importance of calibration techniques. Our implementation is publicly available in the official PyLaia repository at https://gitlab.teklia.com/atr/pylaia, and twelve open-source models are released on Hugging Face.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑