Datasets:

Modalities:
Tabular
Text
ArXiv:
Libraries:
Datasets
License:
File size: 367 Bytes
4b465b5
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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()