Datasets:

Modalities:
Tabular
Text
ArXiv:
Libraries:
Datasets
License:
echr / jsonlify.py
Jonathan Li
Add code
4b465b5
raw
history blame
367 Bytes
# Script used to put files into jsonl format (original downloaded from web archive link, in readme)
import glob
for folder in glob.glob("*/"):
a = []
for file in glob.glob(f"./{folder}*.json"):
contents = open(file, "r").read()
a.append(contents)
with open(f"{folder[:-1]}.jsonl", "w+") as f:
f.write("\n".join(a))
a.clear()