Skip to content

This repository will host our code, dataset, and the best model for our paper

Notifications You must be signed in to change notification settings

gunturbudi/ner-privacy-engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Named Entity Recognition Based Approach for Privacy Requirements Engineering

DOI

The code, dataset and best model from the Paper: "A Named Entity Recognition Based Approach for Privacy Requirements Engineering"

Download the best model trained on BERT with WordNet Synonym Augmentation: https://s.id/1vlLA

Then you can predict the privacy entities:

from flair.data import Sentence
from flair.models import SequenceTagger

# load the trained model
model = SequenceTagger.load('ner-model.pt')

# your user story
sentence = Sentence('As an OlderPerson, I want to know exactly what ALFRED does with my personal data, and share it only on my specific permission.')

# predict the tags
model.predict(sentence)

print(sentence.to_tagged_string())

Please kindly consider citing the following papers if you find this repository useful for your research.

@inproceedings{9582331,
  author = {Herwanto, Guntur Budi and Quirchmayr, Gerald and Tjoa, A Min},
  booktitle = {2021 IEEE 29th International Requirements Engineering Conference Workshops (REW)},
  doi = {10.1109/REW53955.2021.00072},
  pages = {406--411},
  title = {{A Named Entity Recognition Based Approach for Privacy Requirements Engineering}},
  year = {2021}
}

About

This repository will host our code, dataset, and the best model for our paper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages