649453932 / Bert-Chinese-Text-Classification-Pytorch

使用Bert,ERNIE,进行中文文本分类
MIT License
4.03k stars 899 forks source link

关于json对象的转换 #133

Open hu1243 opened 2 years ago

hu1243 commented 2 years ago

你好!我在复现的过程中遇到了如下问题,请问这是原因呢?我跑的是您的源码和您的数据集 File "D:\PycharmProjects\Bert\Bert-Chinese-Text-Classification-Pytorch-master\pytorch_pretrained\modeling.py", line 208, in from_json_file return cls.from_dict(json.loads(text))

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)