Instructions to use ehsanaghaei/SecureBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ehsanaghaei/SecureBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ehsanaghaei/SecureBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ehsanaghaei/SecureBERT") model = AutoModelForMaskedLM.from_pretrained("ehsanaghaei/SecureBERT") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -100,6 +100,8 @@ def predict_mask(sent, tokenizer, model, topk=10, print_results=True):
|
|
| 100 |
print(f"Mask Predictions: {predictions}")
|
| 101 |
|
| 102 |
return words
|
|
|
|
|
|
|
| 103 |
|
| 104 |
# Reference
|
| 105 |
@inproceedings{aghaei2023securebert,
|
|
|
|
| 100 |
print(f"Mask Predictions: {predictions}")
|
| 101 |
|
| 102 |
return words
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
|
| 106 |
# Reference
|
| 107 |
@inproceedings{aghaei2023securebert,
|