MCPcopy Create free account
hub / github.com/debjitpaul/refiner / read_jsonl

Function read_jsonl

data_preprocessing/utils.py:57–65  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

55 json.dump(obj, f, indent=indent)
56
57def read_jsonl(filepath):
58 data = []
59
60 with open(filepath) as f:
61 lines = f.readlines()
62 for line in lines:
63 data.append(json.loads(line))
64
65 return data
66
67def get_doc(text):
68 if text not in doc_cache:

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected