Bert-Chinese-Text-Classification-Pytorch
Bert-Chinese-Text-Classification-Pytorch copied to clipboard
使用Bert,ERNIE,进行中文文本分类
请问您发现两个bert和ernie地址里的内容都是 pytorch_model.bin bert_config.json vocab.txt 预训练模型虽然是bert和ernie,但其实都是bert是嘛
{"error":"Document not found"}
{"error":"Document not found"} 在下载ERNIE模型的时候没有找到这个文件,这是什么原因呢,通过指引跑到paddle那边下模型是用来放到linux上的,这个zip的包是怎么下载的呢?
更换数据集问题
您好,我用自己的数据集(标签类别在前,句子在后),我应该对哪些代码做变化?
FileNotFoundError: [Errno 2] No such file or directory: 'THUCNews/saved_dict/bert.ckpt'
运行错误
FileNotFoundError: [Errno 2] No such file or directory: 'THUCNews/saved_dict/bert.ckpt'
3个数据集合其中dev或者train数据量和batch_size能整除的时候就回出现问题,DatasetIterater函数这块一个bug,会导致爆出问题 IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1) 
执行了python run.py --model bert, 就没有实际预测文本的功能了,有大佬推荐一下预测代码吗
求助! 试过舍弃最后一个batch,还是报同样的错
你好! 我将您的代码中预训练模型做了替换,能否进行英文训练呢(还需修改其他地方吗)?跑出来的效果很差,是数据集太少的缘故吗? 感谢解答。 Hello! I have replaced the pre-trained model in your code, can I do English training (do I need to modify other places)? The effect of running out...