This repository contains code and dataset related to paper titled as Supervised Semantic Similarity-based Conflict Detection Algorithm: S3CDA.
The objective of this study is to find the conflicting requirements from SRS documents using supervised and unsupervised learning approaches. We divided our algorithm into 2 phases.
| Dataset | Conflicts (Yes) | Non-Conflicts (No) | Description |
|---|---|---|---|
| OpenCoss | 20 | 97 | Requirements for safety critical systems |
| UAV | 36 | 80 | Requirements for UAV control system |
| WorldVista | 70 | 78 | Requirements for health management system |
| PURE | 40 | 27 | Extracted from THEMAS (Thermodynamic System) and Mashbot (web interface for managing a company's presence on social networks) SRS documents |
| IBM-UAV | 28 | 75 | Extracted from IBM-DOORS software |
Clone this Github repository and open your command line to navigate the repository and code.
$ cd Paper_1_req_conflict
$ Paper_1_req_conflict/ cd Code
$ Paper_1_req_conflict/Code/ .....
Conflict_unsupervised_demo.ipynb and import the utils files as shown in the file.Conflict_unsupervised/Data/ directory.find_conflict_detect function. (for embeddings argument: 1 is for TFIDF, 2: SBERT+TFIDF 3:USE )utils_conflict_unsupervised file.final_conflict function.Conflict_unsupervised_demo.ipynb
To download the all the necessary libraries please run the following commands$ pip install -r requirements.txt
Note that these codes by default will run on CPU and it's recommended that you should use GPU services for faster execution times. Please follow the colab examples to get started.