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

数据转换以构建从自然语言生成实体-关系模型的数据集

Data Transformation to Construct a Dataset for Generating Entity-Relationship Model from Natural Language

Peking University(北京大学);Microsoft Research Asia(微软亚洲研究院)

Zhenwen Li, Jian-Guang Lou, Tao Xie

AI总结:

本文提出一种数据转换算法,将text-to-SQL数据转换为NL2ERM数据,构建大规模数据集,并训练两个IE模型,实验证明其性能优于现有基线。

摘要:

为了降低设计ER模型的人工成本,近期已有研究提出解决NL2ERM任务的方法,即从自然语言(如软件需求)中自动生成实体-关系(ER)模型。这些方法通常基于规则,依赖僵化的启发式规则;这些方法难以泛化到描述同一需求的各种语言表达方式。尽管深度学习模型比基于规则的方法具有更好的泛化能力,但由于缺乏大规模数据集,NL2ERM任务尚缺乏深度学习模型。为解决此问题,本文报告了我们的见解:NL2ERM任务与日益流行的text-to-SQL任务之间存在高度相似性,并提出一种数据转换算法,将现有的text-to-SQL数据转换为NL2ERM数据。我们将数据转换算法应用于Spider(最流行的text-to-SQL数据集之一),并收集了一些具有不同NL类型的数据条目,以获得大规模的NL2ERM数据集。由于NL2ERM可视为特殊的信息抽取(IE)任务,我们在数据集上训练了两个最先进的IE模型。实验结果表明,这两个模型均取得了高性能,并优于现有基线。

英文摘要:

In order to reduce the manual cost of designing ER models, recent approaches have been proposed to address the task of NL2ERM, i.e., automatically generating entity-relationship (ER) models from natural language (NL) utterances such as software requirements. These approaches are typically rule-based ones, which rely on rigid heuristic rules; these approaches cannot generalize well to various linguistic ways of describing the same requirement. Despite having better generalization capability than rule-based approaches, deep-learning-based models are lacking for NL2ERM due to lacking a large-scale dataset. To address this issue, in this paper, we report our insight that there exists a high similarity between the task of NL2ERM and the increasingly popular task of text-to-SQL, and propose a data transformation algorithm that transforms the existing data of text-to-SQL into the data of NL2ERM. We apply our data transformation algorithm on Spider, one of the most popular text-to-SQL datasets, and we also collect some data entries with different NL types, to obtain a large-scale NL2ERM dataset. Because NL2ERM can be seen as a special information extraction (IE) task, we train two state-of-the-art IE models on our dataset. The experimental results show that both the two models achieve high performance and outperform existing baselines.

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

↑