cpi-connect
commited on
Commit
•
44c6516
1
Parent(s):
acd5094
Upload model
Browse files- configuration.py +5 -5
configuration.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import PretrainedConfig
|
2 |
import torch
|
3 |
|
4 |
-
import
|
5 |
|
6 |
|
7 |
|
@@ -17,9 +17,9 @@ class CybersecurityKnowledgeGraphConfig(PretrainedConfig):
|
|
17 |
self.event_argument_model_path = event_argument_model_path
|
18 |
self.event_realis_model_path = event_realis_model_path
|
19 |
|
20 |
-
self.event_nugget_list =
|
21 |
-
self.event_args_list =
|
22 |
-
self.realis_list =
|
23 |
-
self.arg_2_role =
|
24 |
|
25 |
super().__init__(**kwargs)
|
|
|
1 |
from transformers import PretrainedConfig
|
2 |
import torch
|
3 |
|
4 |
+
from . import utils
|
5 |
|
6 |
|
7 |
|
|
|
17 |
self.event_argument_model_path = event_argument_model_path
|
18 |
self.event_realis_model_path = event_realis_model_path
|
19 |
|
20 |
+
self.event_nugget_list = utils.event_nugget_list
|
21 |
+
self.event_args_list = utils.event_args_list
|
22 |
+
self.realis_list = utils.realis_list
|
23 |
+
self.arg_2_role = utils.arg_2_role
|
24 |
|
25 |
super().__init__(**kwargs)
|