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