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

面向需求形式化的自然语言处理:如何衍生新方法?

Natural Language Processing for Requirements Formalization: How to Derive New Approaches?

ifak - Institut für Automation und Kommunikation e.V.(ifak自动化与通信研究所)

Viju Sudhi, Libin Kutty, Robin Gröpler

AI总结:

本文探讨如何利用现代NLP尤其是预训练模型与可迭代规则集,将自然语言功能需求半自动形式化为伪代码模型,并通过汽车和铁路工业用例验证其低工作量与领域适配性。

摘要:

尽可能自动化软件开发与测试过程,长期以来一直是工业界和研究界的愿望。在这一过程中,需求工程(RE)对所有建立在其基础之上的后续步骤发挥着基础性作用。为应对软件系统日益增长的复杂性和可变性,基于模型的设计与测试方法已经得到发展。然而,要从大量以自然语言给出的功能需求中创建规格说明模型,仍然需要投入大量精力。文献中已经提出了许多基于自然语言处理(NLP)的方法,用于生成需求模型,但这些方法主要利用句法属性。NLP的最新进展表明,语义量也可以被识别,并用于在需求形式化过程中提供更好的辅助。在本工作中,我们呈现并讨论NLP领域的核心思想和最先进方法,以指导读者如何根据其特定用例和需求,创建一套用于需求半自动化形式化的规则和方法。我们详细讨论了两种不同的方法,并强调规则集的迭代式开发。需求模型以伪代码形式表示为一种人类和机器均可读的格式。所提出的方法在来自汽车和铁路领域的两个工业用例上进行了演示。结果表明,使用当前的预训练NLP模型创建一套规则所需的工作量更少,并且能够轻松适配特定用例和领域。此外,本文还强调了该研究领域的发现与不足,并对可能的未来发展给出了展望。

英文摘要:

It is a long-standing desire of industry and research to automate the software development and testing process as much as possible. In this process, requirements engineering (RE) plays a fundamental role for all other steps that build on it. Model-based design and testing methods have been developed to handle the growing complexity and variability of software systems. However, major effort is still required to create specification models from a large set of functional requirements provided in natural language. Numerous approaches based on natural language processing (NLP) have been proposed in the literature to generate requirements models using mainly syntactic properties. Recent advances in NLP show that semantic quantities can also be identified and used to provide better assistance in the requirements formalization process. In this work, we present and discuss principal ideas and state-of-the-art methodologies from the field of NLP in order to guide the readers on how to create a set of rules and methods for the semi-automated formalization of requirements according to their specific use case and needs. We discuss two different approaches in detail and highlight the iterative development of rule sets. The requirements models are represented in a human- and machine-readable format in the form of pseudocode. The presented methods are demonstrated on two industrial use cases from the automotive and railway domains. It shows that using current pre-trained NLP models requires less effort to create a set of rules and can be easily adapted to specific use cases and domains. In addition, findings and shortcomings of this research area are highlighted and an outlook on possible future developments is given.

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

↑