MatplotAlt:一个用于在计算笔记本中为Matplotlib图形添加替代文本的Python库
MatplotAlt: A Python Library for Adding Alt Text to Matplotlib Figures in Computational Notebooks
AI总结:
MatplotAlt是一个Python库,通过一行代码为Matplotlib图形自动生成替代文本,结合启发式与LLM方法,提高图表描述准确性,满足可访问性需求。
摘要:
我们提出了MatplotAlt,一个开源的Python包,用于轻松地为Matplotlib图形添加替代文本。MatplotAlt使Jupyter笔记本作者能够通过一行代码或命令自动生成并展示图表描述,并支持一系列选项,允许用户根据其偏好和可访问性需求自定义描述的生成和显示。我们的评估表明,MatplotAlt基于启发式方法和基于LLM的方法生成的替代文本,能够为简单的单变量和复杂的Matplotlib图形创建准确的长篇描述。我们发现,最先进的LLM在描述图表时仍然存在事实错误,我们通过使用基于启发式的替代文本或从Matplotlib图形解析的数据表来提示GPT4-turbo,从而提高了我们描述的准确性。
英文摘要:
We present MatplotAlt, an open-source Python package for easily adding alternative text to Matplotlib figures. MatplotAlt equips Jupyter notebook authors to automatically generate and surface chart descriptions with a single line of code or command, and supports a range of options that allow users to customize the generation and display of captions based on their preferences and accessibility needs. Our evaluation indicates that MatplotAlt's heuristic and LLM-based methods to generate alt text can create accurate long-form descriptions of both simple univariate and complex Matplotlib figures. We find that state-of-the-art LLMs still struggle with factual errors when describing charts, and improve the accuracy of our descriptions by prompting GPT4-turbo with heuristic-based alt text or data tables parsed from the Matplotlib figure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。