MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / read_from_file

Method read_from_file

extraction/event_schema.py:15–20  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

13
14 @staticmethod
15 def read_from_file(filename):
16 lines = open(filename).readlines()
17 type_list = json.loads(lines[0])
18 role_list = json.loads(lines[1])
19 type_role_dict = json.loads(lines[2])
20 return EventSchema(type_list, role_list, type_role_dict)
21
22 def write_to_file(self, filename):
23 with open(filename, 'w') as output:

Callers 5

mainFunction · 0.80
mainFunction · 0.80
annotate_spanMethod · 0.80
annotate_spanMethod · 0.80

Calls 1

EventSchemaClass · 0.85

Tested by

no test coverage detected