arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.03286cs.DB
收藏

面向 JSON Schema 发现的大语言模型

Large Language Models for JSON Schema Discovery

Michael J. Mior

AI总结:

本文研究如何利用大语言模型为自动发现的 JSON Schema 自动补充语义描述、命名可复用定义并识别噪声属性,从而弥补现有方法只关注语法而忽略语义的不足。

摘要:

诸如 JSON 之类的半结构化数据格式已被证明是适用于需要灵活数据存储格式的应用的有用数据模型。然而,JSON 数据往往缺乏关系型数据通常具备的模式(schema)。这催生了许多从数据集合中发现模式的工具。尽管这些工具可能有用,但现有方法主要关注文档的语法,而忽略了语义信息。在这项工作中,我们探索了向发现的模式自动添加有意义的语义信息,类似于人类模式作者所添加的信息。我们利用大语言模型(Large Language Models)和人工编写的 JSON Schema 文档语料库,为模式元素生成自然语言描述,为可复用定义生成有意义的名称,并识别哪些已发现的属性最有用以及哪些可被视为“噪声”。我们的方法在现有的文本生成指标上表现良好,这些指标此前已被证明与人类判断具有良好相关性。

英文摘要:

Semi-structured data formats such as JSON have proved to be useful data models for applications that require flexibility in the format of data stored. However, JSON data often come without the schemas that are typically available with relational data. This has resulted in a number of tools for discovering schemas from a collection of data. Although such tools can be useful, existing approaches focus on the syntax of documents and ignore semantic information. In this work, we explore the automatic addition of meaningful semantic information to discovered schemas similar to information that is added by human schema authors. We leverage large language models and a corpus of manually authored JSON Schema documents to generate natural language descriptions of schema elements, meaningful names for reusable definitions, and identify which discovered properties are most useful and which can be considered "noise". Our approach performs well on existing metrics for text generation that have been previously shown to correlate well with human judgement.

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

↑