harshildarji commited on
Commit
0c4ca8d
1 Parent(s): 39c2425

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -2,7 +2,24 @@
2
  license: mit
3
  ---
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  #### Classes:
 
 
6
  |Abbreviation|Class|
7
  |----|----|
8
  |DC|Data Controller|
 
2
  license: mit
3
  ---
4
 
5
+ #### Example use:
6
+ ```python
7
+ from transformers import pipeline
8
+ from transformers import AutoTokenizer, AutoModelForTokenClassification
9
+
10
+ tokenizer = AutoTokenizer.from_pretrained("harshildarji/gdpr-privacy-policy-ner", use_auth_token="AUTH_TOKEN")
11
+ model = AutoModelForTokenClassification.from_pretrained("harshildarji/gdpr-privacy-policy-ner", use_auth_token="AUTH_TOKEN")
12
+
13
+ ner = pipeline("ner", model=model, tokenizer=tokenizer)
14
+ 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."
15
+
16
+ results = ner(example)
17
+ print(results)
18
+ ```
19
+
20
  #### Classes:
21
+
22
+ Following are the 33 NER annotations in accordance with GDPR:
23
  |Abbreviation|Class|
24
  |----|----|
25
  |DC|Data Controller|