MCPcopy Create free account
hub / github.com/CoopReason/TESSY / read_jsonl

Function read_jsonl

utils.py:97–106  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

95
96
97def read_jsonl(path):
98 dataset = []
99 with open(path, "r", encoding="utf-8") as f:
100 for i, line in enumerate(f.readlines()):
101 try:
102 dataset.append(json.loads(line))
103 except Exception as e:
104 print("line:", i, e)
105 print("dataset:", len(dataset))
106 return dataset
107
108
109def post_process_text(text, enable_think):

Callers 1

async_mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected