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 ·
29d5112
1
Parent(s): 7969312
Upload model
Browse files
model.py
CHANGED
|
@@ -6,7 +6,7 @@ from sentence_transformers import SentenceTransformer
|
|
| 6 |
from transformers import AutoTokenizer
|
| 7 |
|
| 8 |
|
| 9 |
-
from
|
| 10 |
from cybersecurity_knowledge_graph.args_model_utils import CustomRobertaWithPOS as ArgumentModel
|
| 11 |
from cybersecurity_knowledge_graph.realis_model_utils import CustomRobertaWithPOS as RealisModel
|
| 12 |
|
|
|
|
| 6 |
from transformers import AutoTokenizer
|
| 7 |
|
| 8 |
|
| 9 |
+
from .nugget_model_utils import CustomRobertaWithPOS as NuggetModel
|
| 10 |
from cybersecurity_knowledge_graph.args_model_utils import CustomRobertaWithPOS as ArgumentModel
|
| 11 |
from cybersecurity_knowledge_graph.realis_model_utils import CustomRobertaWithPOS as RealisModel
|
| 12 |
|