literotica-pile / data /P5_collate_stories.py
mrcuddle's picture
Migrated from GitHub
7984f0c verified
raw
history blame contribute delete
264 Bytes
import jsonlines
import json
from dspipe import Pipe
f_save = "data/Literotica.jsonl"
def compute(f0):
with open(f0) as FIN:
js = json.load(FIN)
FOUT.write(js)
with jsonlines.open(f_save, "w") as FOUT:
Pipe("data/full_text/")(compute, 1)