cpi-connect commited on
Commit
44c6516
1 Parent(s): acd5094

Upload model

Browse files
Files changed (1) hide show
  1. configuration.py +5 -5
configuration.py CHANGED
@@ -1,7 +1,7 @@
1
  from transformers import PretrainedConfig
2
  import torch
3
 
4
- import cybersecurity_knowledge_graph.utils
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 = cybersecurity_knowledge_graph.utils.event_nugget_list
21
- self.event_args_list = cybersecurity_knowledge_graph.utils.event_args_list
22
- self.realis_list = cybersecurity_knowledge_graph.utils.realis_list
23
- self.arg_2_role = cybersecurity_knowledge_graph.utils.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)