arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.16716cs.SE
收藏

基于领域本体的自然语言需求自动生成

Automated Generating Natural Language Requirements based on Domain Ontology

Ziyan Zhao, Li Zhang, Xiaoyun Gao, Xiaoli Lian, Heyang Lv, Lin Shi

摘要:

软件需求规格说明对于整个软件生命周期无疑是至关重要的。如今,编写软件需求规格说明主要依赖于人类的工作。虽然已经提出了大量的研究,通过提出先进的启发和分析技术,以加快这一进程,它仍然是一个耗时和容易出错的任务,需要考虑到领域知识和业务信息。在本文中,我们提出了一种方法,命名为ReqGen,它可以提供建议,自动生成自然语言的需求规格说明的基础上,某些给定的关键字。具体来说,ReqGen包括三个关键步骤。首先,从领域本体中选择面向关键词的知识,并将其注入到基本的统一预训练语言模型(UniLM)中进行领域微调。其次,集成了复制机制,以确保关键字在生成的语句中出现。最后,设计了一种需求语法约束的解码方法,以缩小候选规范和参考规范之间的语义和语法距离。在两个来自不同领域和不同群体的公共数据集上的实验表明,ReqGen在关键词(短语)包含的硬约束、BLEU、ROUGE和语法遵从性方面优于六种流行的自然语言生成方法。我们相信ReqGen可以提高软件需求描述的效率和智能性。

英文摘要:

Software requirements specification is undoubtedly critical for the whole software life-cycle. Nowadays, writing software requirements specifications primarily depends on human work. Although massive studies have been proposed to fasten the process via proposing advanced elicitation and analysis techniques, it is still a time-consuming and error-prone task that needs to take domain knowledge and business information into consideration. In this paper, we propose an approach, named ReqGen, which can provide recommendations by automatically generating natural language requirements specifications based on certain given keywords. Specifically, ReqGen consists of three critical steps. First, keywords-oriented knowledge is selected from domain ontology and is injected to the basic Unified pre-trained Language Model (UniLM) for domain fine-tuning. Second, a copy mechanism is integrated to ensure the occurrence of keywords in the generated statements. Finally, a requirement syntax constrained decoding is designed to close the semantic and syntax distance between the candidate and reference specifications. Experiments on two public datasets from different groups and domains show that ReqGen outperforms six popular natural language generation approaches with respect to the hard constraint of keywords(phrases) inclusion, BLEU, ROUGE and syntax compliance. We believe that ReqGen can promote the efficiency and intelligence of specifying software requirements.

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

↑