Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

使用Bert,ERNIE,进行中文文本分类

Results 145 Bert-Chinese-Text-Classification-Pytorch issues
Sort by recently updated
recently updated
newest added

为什么我按照源代码 原数据集训练出来的准确率 和你的差很多呢 而且时间也很长

预测代码如下: ```python import os import torch import torch.nn as nn from pytorch_pretrained_bert import BertModel, BertTokenizer # 识别的类型 key = {0: '别名', 1: '防治农药', 2: '病原学名', 3: '病原中文名', 4: '病原属性', 5:...

您好! 最近用您的pytorch框架加载了很多的预训练模型fintune自己的任务都成功了,但是在用albert族的model的时候却都没成功。 报错如下: ``` $ python run.py --model albert_base_bright Loading data... 401it [00:04, 96.21it/s] 140it [00:01, 101.19it/s] 135it [00:01, 86.25it/s] Time usage: 0:00:07 Traceback (most recent call last): File "run.py",...

您好,请问我用您的数据和模型进行运行梳理学习时,实现的准确率只有60%,请问您知道有什么问题我需要修改的吗?谢谢

usage: run.py [-h] --model MODEL run.py: error: the following arguments are required: --model

我最近的project有用到这个包,苦于参数多,手动调参费时费力于是给这个包加了个调参功能。另外也把原作者的两个包进行了一定的整合,目前支持Bert,TextCNN,TextRNN,FastText,TextRCNN,BiLSTM_Attention, DPCNN, Transformer。 有需要的同学们下面链接里自取哈。同时也欢迎随时反馈。 https://github.com/linzzzzzz/Chinese-Text-Classification-Pytorch-Tuning

from torch.optim.optimizer import required required一直顯示為紅色,想請問大大該如何解決 並且也想請問用甚麼平台來跑此程式(pycharm or vscode or others)??

你好,看了你的代码受益匪浅,对于Bert的变种我有一个问题想问一下,就是Bert_CNN、Bert_RNN、Bert_RCNN以及Bert_DPCNN模型都是出自于某一篇论文吗?如果是的话可否将论文名称或者论文链接分享一下?谢谢。

将bert与其他模型结合得到的效果是什么,刚开始学习,不是很了解