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

基于递归神经张量网络的自然语言需求因果关系细粒度提取

Fine-Grained Causality Extraction From Natural Language Requirements Using Recursive Neural Tensor Networks

Qualicen GmbH(Qualicen有限公司);Technical University of Munich(慕尼黑工业大学);Blekinge Institute of Technology(布莱金厄理工学院);University of Cologne(科隆大学);fortiss GmbH(福蒂斯有限公司)

Jannik Fischbach, Tobias Springer, Julian Frattini, Henning Femmer, Andreas Vogelsang, Daniel Mendez

摘要:

[上下文:]因果关系(例如,如果A,则B)在功能需求中普遍存在。对于AI4RE的各种应用,例如,从需求中自动推导出合适的测试用例,自动提取这种因果关系陈述是一个基本的必要条件。[问题:]我们缺乏一种能够以细粒度形式从自然语言需求中提取因果关系的方法。具体而言,现有的方法不考虑因果之间的组合。它们也不允许将原因和结果分割成更细粒度的文本片段(例如,变量和条件),使得提取的关系不适合自动测试用例推导。[目标与贡献:]我们解决了这一研究空白,并做出了以下贡献:首先,我们提出了因果树库,这是第一个完全标记的二元解析树语料库,代表了1,571个因果要求的组成。其次,我们提出了一种基于递归神经张量网络的细粒度因果关系提取器。我们的方法是能够恢复组成的因果语句写在自然语言,并取得了74%的因果关系树库的评价F1得分。第三,我们公开了我们的开放数据集以及我们的代码,以促进RE社区中因果关系自动提取的讨论。

英文摘要:

[Context:] Causal relations (e.g., If A, then B) are prevalent in functional requirements. For various applications of AI4RE, e.g., the automatic derivation of suitable test cases from requirements, automatically extracting such causal statements are a basic necessity. [Problem:] We lack an approach that is able to extract causal relations from natural language requirements in fine-grained form. Specifically, existing approaches do not consider the combinatorics between causes and effects. They also do not allow to split causes and effects into more granular text fragments (e.g., variable and condition), making the extracted relations unsuitable for automatic test case derivation. [Objective & Contributions:] We address this research gap and make the following contributions: First, we present the Causality Treebank, which is the first corpus of fully labeled binary parse trees representing the composition of 1,571 causal requirements. Second, we propose a fine-grained causality extractor based on Recursive Neural Tensor Networks. Our approach is capable of recovering the composition of causal statements written in natural language and achieves a F1 score of 74 % in the evaluation on the Causality Treebank. Third, we disclose our open data sets as well as our code to foster the discourse on the automatic extraction of causality in the RE community.

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

↑