hadiaskari98
commited on
Commit
•
b6213ec
1
Parent(s):
6cc167f
Update README.md
Browse files
README.md
CHANGED
@@ -12,8 +12,7 @@ library_name: transformers
|
|
12 |
**How to use**
|
13 |
|
14 |
|
15 |
-
|
16 |
-
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
17 |
|
18 |
tokenizer = AutoTokenizer.from_pretrained("hadiaskari98/VULNERABILITY_NER_Fixed")
|
19 |
model = AutoModelForTokenClassification.from_pretrained("hadiaskari98/VULNERABILITY_NER_Fixed")
|
@@ -24,5 +23,3 @@ example = "This is an example of a SQL Injection attack"
|
|
24 |
|
25 |
ner_results = nlp(example)
|
26 |
print(ner_results)
|
27 |
-
|
28 |
-
'''
|
|
|
12 |
**How to use**
|
13 |
|
14 |
|
15 |
+
```from transformers import AutoTokenizer, AutoModelForTokenClassification
|
|
|
16 |
|
17 |
tokenizer = AutoTokenizer.from_pretrained("hadiaskari98/VULNERABILITY_NER_Fixed")
|
18 |
model = AutoModelForTokenClassification.from_pretrained("hadiaskari98/VULNERABILITY_NER_Fixed")
|
|
|
23 |
|
24 |
ner_results = nlp(example)
|
25 |
print(ner_results)
|
|
|
|