File size: 215 Bytes
fd74a4d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import json
from tqdm import tqdm

def read_jsonl(path: str):
    data = []
    with open(path) as f:
        for line in f:
            line = line.strip()
            data.append(json.loads(line))

    return data