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 ·
1fb2ae2
1
Parent(s): 77eacb7
Upload model
Browse files
model.py
CHANGED
|
@@ -5,7 +5,7 @@ from cybersecurity_knowledge_graph.nugget_model_utils import CustomRobertaWithPO
|
|
| 5 |
from cybersecurity_knowledge_graph.args_model_utils import CustomRobertaWithPOS as ArgumentModel
|
| 6 |
from cybersecurity_knowledge_graph.realis_model_utils import CustomRobertaWithPOS as RealisModel
|
| 7 |
|
| 8 |
-
from
|
| 9 |
|
| 10 |
from cybersecurity_knowledge_graph.event_nugget_predict import create_dataloader as event_nugget_dataloader
|
| 11 |
from cybersecurity_knowledge_graph.event_realis_predict import create_dataloader as event_realis_dataloader
|
|
|
|
| 5 |
from cybersecurity_knowledge_graph.args_model_utils import CustomRobertaWithPOS as ArgumentModel
|
| 6 |
from cybersecurity_knowledge_graph.realis_model_utils import CustomRobertaWithPOS as RealisModel
|
| 7 |
|
| 8 |
+
from .configuration import CybersecurityKnowledgeGraphConfig
|
| 9 |
|
| 10 |
from cybersecurity_knowledge_graph.event_nugget_predict import create_dataloader as event_nugget_dataloader
|
| 11 |
from cybersecurity_knowledge_graph.event_realis_predict import create_dataloader as event_realis_dataloader
|