taishan1994 / BERT-BILSTM-CRF

使用BERT-BILSTM-CRF进行中文命名实体识别。
291 stars 32 forks source link

运行报错 #12

Open dongyuanHe opened 6 months ago

dongyuanHe commented 6 months ago

['O', 'B-故障设备', 'I-故障设备', 'B-故障原因', 'I-故障原因'] {'O': 0, 'B-故障设备': 1, 'I-故障设备': 2, 'B-故障原因': 3, 'I-故障原因': 4} Some weights of the model checkpoint at ./model_hub/chinese-bert-wwm-ext/ were not used when initializing BertModel: ['cls.seq_relationship.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.seq_relationship.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.dense.weight', 'cls.predictions.decoder.weight', 'cls.predictions.bias']

taishan1994 commented 6 months ago

pip install pytorch-crf==0.7.2

dongyuanHe commented 6 months ago

pip install pytorch-crf==0.7.2

佬,为啥我安装了pytorch-crf==0.7.2,还是这样的报错

taishan1994 commented 5 months ago

可以先看下目前已安装的版本,然后先把它删除掉,再进行安装。

dongyuanHe commented 5 months ago

可以先看下目前已安装的版本,然后先把它删除掉,再进行安装。

运行成功了,但是loss都是几十,正常吗?

taishan1994 commented 5 months ago

可以先看下目前已安装的版本,然后先把它删除掉,再进行安装。

运行成功了,但是loss都是几十,正常吗?

多训练会就会下降的。

dongyuanHe commented 5 months ago

可以先看下目前已安装的版本,然后先把它删除掉,再进行安装。

运行成功了,但是loss都是几十,正常吗?

多训练会就会下降的。

佬,意思是多加几个epoch吗

taishan1994 commented 5 months ago

是的

dongyuanHe commented 5 months ago

是的

佬,4080的话,设置多少个epoch好呢

taishan1994 commented 5 months ago

看数据量,自己可以多试试几个。

dongyuanHe commented 5 months ago

看数据量,自己可以多试试几个。

数据集差不多是一万条文本

LiYiFeng0706 commented 4 months ago

pip install pytorch-crf==0.7.2

佬,为啥我安装了pytorch-crf==0.7.2,还是这样的报错

你好,请问你是如何解决的,我现在pytorch-crf==0.7.2,TorchCRF==1.1.0,尝试重新安装好多遍了,一直报的这样的错误

kejiakebujia commented 2 months ago

可以先看下目前已安装的版本,然后先把它删除掉,再进行安装。

你好大佬,我这样照做为什么还是报错