arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04656cs.CLcs.IR
收藏

通过用户交互实现数学文档的语义标记

Towards Semantic Markup of Mathematical Documents via User Interaction

Heriot-Watt University(赫瑞-瓦特大学)

Luka Vrečar, Joe Wells, Fairouz Kamareddine

AI总结:

本文提出从现有 sTeX 宏定义半自动生成文法并解析数学公式的方法,配合 GUI 消歧工具,帮助作者将普通 LaTeX 文档转换为语义标记。

摘要:

用 LaTeX 编写的数学文档通常包含歧义。我们可以通过使用 sTeX 等进行语义标记来消除其中一些歧义,语义标记还具有其他潜在益处,例如与计算机代数系统、证明系统的互操作性,以及更高的可访问性。然而,语义标记比“常规”排版更复杂,给数学文档作者带来了挑战。我们的目标是通过为作者开发半自动工具,平缓从普通 LaTeX 到语义标记的过渡。在本文中,我们提出一种公式语义标记方法:从现有 sTeX 宏定义中(半)自动生成文法,并用其解析数学公式。我们还提出了一个基于 GUI 的工具,用于对解析结果进行消歧,并通过用于解析无类型 λ-项的文法展示其功能和潜力。

英文摘要:

Mathematical documents written in LaTeX often contain ambiguities. We can resolve some of them via semantic markup using, e.g., sTeX, which also has other potential benefits, such as interoperability with computer algebra systems, proof systems, and increased accessibility. However, semantic markup is more involved than "regular" typesetting and presents a challenge for authors of mathematical documents. We aim to smooth out the transition from plain LaTeX to semantic markup by developing semi-automatic tools for authors. In this paper we present an approach to semantic markup of formulas by (semi-)automatically generating grammars from existing sTeX macro definitions and parsing mathematical formulas with them. We also present a GUI-based tool for the disambiguation of parse results and showcase its functionality and potential using a grammar for parsing untyped $λ$-terms.

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

↑