Instructions to use CyberPeace-Institute/Cybersecurity-Knowledge-Graph with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CyberPeace-Institute/Cybersecurity-Knowledge-Graph with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="CyberPeace-Institute/Cybersecurity-Knowledge-Graph", trust_remote_code=True)# Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("CyberPeace-Institute/Cybersecurity-Knowledge-Graph", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
e6d289c
1
Parent(s): 80cd7bf
Upload model
Browse files- config.json +4 -0
config.json
CHANGED
|
@@ -97,6 +97,10 @@
|
|
| 97 |
"Supported_Platform"
|
| 98 |
]
|
| 99 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
"event_args_list": [
|
| 101 |
"O",
|
| 102 |
"B-System",
|
|
|
|
| 97 |
"Supported_Platform"
|
| 98 |
]
|
| 99 |
},
|
| 100 |
+
"auto_map": {
|
| 101 |
+
"AutoConfig": "configuration.CybersecurityKnowledgeGraphConfig",
|
| 102 |
+
"AutoModelForTokenClassification": "model.CybersecurityKnowledgeGraphModel"
|
| 103 |
+
},
|
| 104 |
"event_args_list": [
|
| 105 |
"O",
|
| 106 |
"B-System",
|