Chinese-Text-Classification-Pytorch
Chinese-Text-Classification-Pytorch copied to clipboard
中文文本分类,TextCNN,TextRNN,FastText,TextRCNN,BiLSTM_Attention,DPCNN,Transformer,基于pytorch,开箱即用。
使用了新的数据集,字典5300,训练集750000,验证集8000,测试集83599. 结果不理想。 ` Epoch [1/20] Iter: 0, Train Loss: 3.7, Train Acc: 0.00%, Val Loss: 3.1, Val Acc: 4.48%, Time: 0:01:14 * Iter: 100, Train Loss: 2.7e-05, Train Acc: 100.00%,...
找不到BiLstm模型,请问是删除了吗?
没有达到作者的0.91,大家试的咋样? 是哪里没有配置对么,没改啥,直接跑的作者的数据集,词向量使用的随机初始化。 Loading data... 171223it [00:01, 158092.93it/s]Vocab size: 4762 180000it [00:01, 163141.73it/s] 180000it [00:01, 90840.01it/s] 10000it [00:00, 85676.20it/s] 9398it [00:00, 93301.18it/s]Time usage: 0:00:03 10000it [00:00, 93711.34it/s] Epoch [1/20] Iter: 0,...
您好,请问训练之后的模型保存在哪里呢? 我是按照python run.py --model TextCNN训练的,然后这个模型保存在哪呢?我看它好像没有保存?
Loading data... Vocab size: 4762 491it [00:00, 98460.66it/s] 40it [00:00, ?it/s] 42it [00:00, 42113.50it/s] Traceback (most recent call last): File "C:\Users\dell\Desktop\Chinese-Text-Classification-Pytorch-master\run.py", line 41, in dev_iter = build_iterator(dev_data, config) File "C:\Users\dell\Desktop\Chinese-Text-Classification-Pytorch-master\utils.py",...
您好,我想请教个问题,我最近做实验结果发现,Text_RCNN比Text_CNN文的本分类测试集准确率低很多,但是看您提供的实验对比数据是Text_RCNN要比Text_CNN高,同时我用您另一个模型库bert_RCNN效果是要高于bert_CNN,想请教下这是和我用的数据有关系吗,还是其他原因那? @649453932
希望有大神可以写个FastText输出预测类的给代码也行,谢谢
您好,请问我其它模型都没问题,但运行TextRCNN时报错:RuntimeError: fractional_max_pool2d_backward_out_cuda failed with error code 0 。怎么解决呢?万分感谢~
` def biGramHash(sequence, t, buckets): t1 = sequence[t - 1] if t - 1 >= 0 else 0 return (t1 * 14918087) % buckets def triGramHash(sequence, t, buckets): t1 =...
一段文本属于多个类别的情况