Commit ·
d59be39
1
Parent(s): 0c981af
Fixed bug tokenizer SecureBERT (#1)
Browse files- Fixed bug tokenizer SecureBERT (a888d09dceff2dedab9d4f10f0d5f508fe4b1ea9)
Co-authored-by: Franco Terranova <terranovaa@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -65,7 +65,7 @@ The model was evaluated on the held-out test set using standard multi-label clas
|
|
| 65 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 66 |
import torch
|
| 67 |
|
| 68 |
-
tokenizer = AutoTokenizer.from_pretrained("Sana9/securebert-vuln2attack-flat")
|
| 69 |
model = AutoModelForSequenceClassification.from_pretrained("Sana9/securebert-vuln2attack-flat")
|
| 70 |
|
| 71 |
text = "Buffer overflow vulnerability in OpenSSL allows remote attackers to execute arbitrary code."
|
|
|
|
| 65 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 66 |
import torch
|
| 67 |
|
| 68 |
+
tokenizer = AutoTokenizer.from_pretrained("Sana9/securebert-vuln2attack-flat", use_fast=False)
|
| 69 |
model = AutoModelForSequenceClassification.from_pretrained("Sana9/securebert-vuln2attack-flat")
|
| 70 |
|
| 71 |
text = "Buffer overflow vulnerability in OpenSSL allows remote attackers to execute arbitrary code."
|