-
在指定device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")前提下
使用自带的duie和dgre数据集都会在训练几个Epoch之后抛出如下错误:
【train】6/100 40420/713100 loss:2.2920708656311035
【train】6/100 40430/713100 lo…
-
我用您的代码进行了模型的训练,成功训练之后打算用predict.py代码进行预测的尝试
结果出现以下两个问题:
①输入文本过长似乎会发生“实体识别结果为空”的提示
②而输入较短的文本会提示访问huggingface的404,似乎我需要在huggingface上上传模型还是什么吗?
2023-01-24 15:21:36.106249: I tensorflow/stream_exe…
uyoin updated
1 month ago
-
作者您好,请问有bert-bilstm-crf的模型吗?还是说bert-bilstm-crf也没有bert-crf的模型效果好呢?
-
raceback (most recent call last):
File "/content/drive/MyDrive/BERT-BILSTM-CRF-main/main.py", line 193, in
main(data_name)
File "/content/drive/MyDrive/BERT-BILSTM-CRF-main/main.py", line 187, in …
-
File "/root/autodl-tmp/wordseg/BERT-BiLSTM-CRF/data_loader.py", line 95, in collate_fn
batch_labels[j][:cur_tags_len] = labels[j]
ValueError: could not broadcast input array from shape (188,) …
-
已经生成events.out之后,根据tensorboard --logdir ./checkpoint/ner_msra_bert_bilstm_crf得到的网址进去,却显示不出图形
No scalar data was found.
Probable causes:
You haven’t written any scalar data to your event files.
…
-
Hi,
Really impressive work and a nice repository combining all the NER models.
I was trying to comprehend the codebase and what all are its capabilities. To that end, I made a list of NER-baselines …
-
在训练不同模型的时候会出错。同一个虚拟环境下,bert-bilstm-crf可以训练并且也有结果,但把bilstm设置为False就会出现runtimeError。请问一下作者这个会是什么原因呢?
-
1.已用自己的数据进行命名实体识别train,结果输出到output文件夹中。
2.我在cmd运行server代码:
bert-base-serving-start -model_dir D:\Projects\Wunianyue\BERT-BiLSTM-CRF-NER\output -bert_model_dir D:\Projects\Wunianyue\BERT-BiLSTM-CRF-N…
-
Traceback (most recent call last):
File "E:\自然语言处理\BERT-BILSTM-CRF-main\predict.py", line 70, in
predictor = Predictor(data_name)
File "E:\自然语言处理\BERT-BILSTM-CRF-main\predict.py", line 24,…