PeiChangY / -BERT-BILSTM-DGCNN-ATTENTION-CRF-

利用BERT+BILSTM/DGCNN+ATTENTION+CRF 解决中文NER任务
31 stars 1 forks source link

模型训练效果的问题 #2

Open cutecharmingkid opened 1 year ago

cutecharmingkid commented 1 year ago

大家使用bert-bilstm-attention-crf训练出来的模型效果如何?我使用训练好的网络依然无法抽取实体,请问是我的训练中存在问题吗?

PeiChangY commented 1 year ago

你训练的是什么领域实体,你只能识别这个领域的实体,并不是训练效果的问题

------------------ 原始邮件 ------------------ 发件人: "PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-" @.>; 发送时间: 2023年3月15日(星期三) 中午12:46 @.>; @.***>; 主题: [PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-] 模型训练效果的问题 (Issue #2)

大家使用bert-bilstm-attention-crf训练出来的模型效果如何?我使用训练好的网络依然无法抽取实体,请问是我的训练中存在问题吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

cutecharmingkid commented 1 year ago

您好,我是使用您的数据集msra_data进行训练,我使用predict文件预测使用的语句是:习近平是中华人民共和国的主席。返回的预测结果为空。同时系统提示:UserWarning: where received a uint8 condition tensor. This behavior is deprecated and will be removed in a future version of PyTorch. Use a boolean condition instead. (Triggered internally at ..\aten\src\ATen\native\TensorCompare.cpp:328.) score = torch.where(mask[i].unsqueeze(1), next_score, score)

image

cutecharmingkid commented 1 year ago

你训练的是什么领域实体,你只能识别这个领域的实体,并不是训练效果的问题 ------------------ 原始邮件 ------------------ 发件人: "PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-" @.>; 发送时间: 2023年3月15日(星期三) 中午12:46 @.>; @.>; 主题: [PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-] 模型训练效果的问题 (Issue #2) 大家使用bert-bilstm-attention-crf训练出来的模型效果如何?我使用训练好的网络依然无法抽取实体,请问是我的训练中存在问题吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> 您好,我是使用您的数据集msra_data进行训练,我使用predict文件预测使用的语句是:习近平是中华人民共和国的主席。返回的预测结果为空。同时系统提示:UserWarning: where received a uint8 condition tensor. This behavior is deprecated and will be removed in a future version of PyTorch. Use a boolean condition instead. (Triggered internally at ..\aten\src\ATen\native\TensorCompare.cpp:328.) score = torch.where(mask[i].unsqueeze(1), next_score, score)

image