wincode commited on
Commit
87ab4ef
·
1 Parent(s): 5f9f1d0

Convert dataset to JSONL

Browse files
Files changed (3) hide show
  1. HESA_dataset_v1.json +0 -0
  2. convert.py +8 -0
  3. train.jsonl +7 -0
HESA_dataset_v1.json DELETED
The diff for this file is too large to render. See raw diff
 
convert.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import json
2
+
3
+ with open("HESA_dataset_v1.json", "r") as f:
4
+ data = json.load(f)
5
+
6
+ with open("train.jsonl", "w") as f:
7
+ for item in data:
8
+ f.write(json.dumps(item) + "\n")
train.jsonl ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ "dataset_name"
2
+ "version"
3
+ "generated_at"
4
+ "total_samples"
5
+ "description"
6
+ "schema_version"
7
+ "samples"