MCPcopy Create free account
hub / github.com/EZ-hwh/AutoScraper / load_file

Function load_file

crawler_count.py:110–119  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

108 OUTPUT_HOME = f'dataset/{dataset}/{model}'
109
110def load_file(filename):
111 result_dict = {}
112 with open(filename, 'r') as f:
113 for index, line in enumerate(f.readlines()):
114 if index <= 1:
115 continue
116 item_list = line.strip().split('\t')
117 #print(item_list)
118 result_dict[item_list[0]] = item_list[2 : 2+int(item_list[1])]
119 return result_dict
120
121for field in SCHEMA.keys():
122 if not os.path.exists(os.path.join(OUTPUT_HOME, PATTERN, field)):

Callers 1

crawler_count.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected