def process_json(json_filename): #Create JSON object cur_Context = Context(json_filename) with open('data/json/' + json_filename, 'r') as f: for ii, line in enumerate(f): if ii > 0 and len(line) > 40: cur_Context.add_line(line) if ii % 1000 == 0: print('Reading json', ii) cur_Context.print_context() return cur_Context