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

Jannik Fischbach, Tobias Springer, Julian Frattini, Henning Femmer, Andreas Vogelsang +1 more
7/21/2021
cs.CLcs.IR

Official code: springto/Fine-Grained-Causality-Extraction-From-NL-Requirements (2 stars, Python, last commit 2021-06-22).

Abstract

[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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

21Python, JavaScriptMay 19, 20215 years ago

Similar Papers

Cite this paper

@article{fischbach2021finegrained,
  title  = {Fine-Grained Causality Extraction From Natural Language Requirements Using Recursive Neural Tensor Networks},
  author = {Jannik Fischbach and Tobias Springer and Julian Frattini and Henning Femmer and Andreas Vogelsang and Daniel Mendez},
  year   = {2021},
  eprint = {2107.09980},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.09980}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.09980.svg)](https://codeofpaper.com/paper/2107.09980)

Discussion