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

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

UnboundLocalError: local variable 'start_pos' referenced before assignment #9

Open 1357810la opened 1 year ago

1357810la commented 1 year ago

ff698c4f1472ab1776049ddac0122c8 有遇到过这个问题的吗,模型跑一半,出现这个错误

PeiChangY commented 1 year ago

应该是电脑负荷过高的问题,重跑就好了,或者换台配置更高的机子

------------------ 原始邮件 ------------------ 发件人: "PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-" @.>; 发送时间: 2023年6月30日(星期五) 晚上9:07 @.>; @.***>; 主题: [PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-] UnboundLocalError: local variable 'start_pos' referenced before assignment (Issue #9)

有遇到过这个问题的吗,模型跑一半,出现这个错误

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

1357810la commented 1 year ago

应该是电脑负荷过高的问题,重跑就好了,或者换台配置更高的机子 ------------------ 原始邮件 ------------------ 发件人: "PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-" @.>; 发送时间: 2023年6月30日(星期五) 晚上9:07 @.>; @.>; 主题: [PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-] UnboundLocalError: local variable 'start_pos' referenced before assignment (Issue #9) 有遇到过这个问题的吗,模型跑一半,出现这个错误 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

嗯嗯,谢谢,我第二次重新跑 跑通了,第三次又断了,应该是我的配置问题

1357810la commented 1 year ago

作者大大,想问一下可以去掉DGCNN模块,只用bert-bilstm-attention-crf处理吗,需要改哪些地方啊

PeiChangY commented 1 year ago

把forward里的idcnn注释掉

------------------ 原始邮件 ------------------ 发件人: "PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-" @.>; 发送时间: 2023年7月1日(星期六) 下午2:48 @.>; @.**@.>; 主题: Re: [PeiChangY/-BERT-BILSTM-DGCNN-ATTENTION-CRF-] UnboundLocalError: local variable 'start_pos' referenced before assignment (Issue #9)

作者大大,想问一下可以去掉DGCNN模块,只用bert-bilstm-attention-crf处理吗,需要改哪些地方啊

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