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

Function load_processed_ids

Boundary_Predictor/annotator.py:44–49  ·  view source on GitHub ↗
(path_save: str)

Source from the content-addressed store, hash-verified

42 f.write(json.dumps(data, ensure_ascii=False) + "\n")
43
44def load_processed_ids(path_save: str) -> set:
45 if not os.path.exists(path_save):
46 return set()
47 with open(path_save, encoding="utf-8") as f:
48 ids = {json.loads(line)["id_ddm"] for line in f}
49 return ids
50
51
52def construct_dataset(path, data_size):

Callers 1

generate_responseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected