我正在尝试用python加载我的jsonl文件。我使用了下面的代码,得到的错误如下。with open("mli_train_v1.jsonl", 'r', encoding='utf-8') as f:
data = json.loads(f) 它将错误显示为 TypeError: the JSON object must be str, byte
我尝试读取大小约为12 of的JSON文件。我从AMiner引用网络数据集V12 from here下载的。这是一个示例,我在其中删除了几个使JSON过长的字段。(我不能像打开任何其他文件那样打开它,因为它太大了,而且我得到了内存限制错误) import dask.bag as db
b = db.read_text('db