File size: 2,036 Bytes
def9a5e
 
d2207b4
 
def9a5e
39c2425
0c4ca8d
 
 
 
 
ab1fa89
 
0c4ca8d
 
 
 
 
 
 
 
39c2425
0c4ca8d
 
39c2425
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304d706
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
license: mit
widget:
- text: "We do not knowingly collect personal information from anyone under 16. We may limit how we collect, use and store some of the information of EU or EEA users between ages 13 and 16."
---

#### Example use:
```python
from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForTokenClassification

tokenizer = AutoTokenizer.from_pretrained("PaDaS-Lab/gdpr-privacy-policy-ner", use_auth_token="AUTH_TOKEN")
model = AutoModelForTokenClassification.from_pretrained("PaDaS-Lab/gdpr-privacy-policy-ner", use_auth_token="AUTH_TOKEN")

ner = pipeline("ner", model=model, tokenizer=tokenizer)
example = "We do not knowingly collect personal information from anyone under 16. We may limit how we collect, use and store some of the information of EU or EEA users between ages 13 and 16."

results = ner(example)
print(results)
```

#### Classes:

Following are the 33 NER annotations in accordance with GDPR:
|Abbreviation|Class|
|----|----|
|DC|Data Controller|
|DP|Data Processor|
|DPO|Data Protection Officer|
|R|Recipient|
|TP|Third Party|
|A|Authority|
|DS|Data Subject|
|DSO|Data Source|
|RP|Required Purpose|
|NRP|Not-Required Purpose|
|P|Processing|
|NPD|Non-Personal Data|
|PD|Personal Data|
|OM|Organisational Measure|
|TM|Technical Measure|
|LB|Legal Basis|
|CONS|Consent|
|CONT|Contract|
|LI|Legitimate Interest|
|ADM|Automated Decision Making|
|RET|Retention|
|SEU|Scale EU|
|SNEU|Scale Non-EU|
|RI|Right|
|DSR15|Art. 15 Right of access by the data subject|
|DSR16|Art. 16 Right to rectification|
|DSR17|Art. 17 Right to erasure ("right to be forgotten")|
|DSR18|Art. 18 Right to restriction of processing|
|DSR19|Art. 19 Notification obligation regarding rectification or erasure of personal data or restriction of processing|
|DSR20|Art. 20 Right to data portability|
|DSR21|Art. 21 Right to object|
|DSR22|Art. 22 Automated individual decision-making, including profiling|
|LC|Lodge Complaint|

#### Performance:

![BERT model performance](https://i.imgur.com/FK4T1l9.jpg)