Bert-BiLSTM-CRF-pytorch
Bert-BiLSTM-CRF-pytorch copied to clipboard
bert-bilstm-crf implemented in pytorch for named entity recognition.
请问一下作者,我已经下载了chinese_L-12_H-768_A-12的压缩包,但是解压之后里面模型名为bert_model.ckpt.data-00000-of-00001,我是应该用链接使用这个文件么?之前我指向整个chinese_L-12_H-768_A-12文件夹的时候,终端报错提示找不到model,还是说我需要重命名模型文件么
score = score + \ batch_transitions.gather(-1, (label_ids[:, t] * self.tagset_size + label_ids[:, t - 1]).view(-1, 1)) \ + feats[:, t].gather(-1, label_ids[:, t].view(-1, 1)).view(-1, 1) 是否应该变为 score = score + \...
您好,请问训练时,是否会有loss值过大的问题呢?
您好,感谢您的代码,在crf.py中的_forward_alg函数里面有一行代码不太明白: `log_alpha = (log_sum_exp_batch(self.transitions + log_alpha, axis=-1) + feats[:, t]).unsqueeze(1)` 在_forward_alg函数中的log_alpha处,为什么在函数log_sum_exp_batch的外面加feats[:, t],感觉在pytorch官方非batch版本中,是先加feats再进行log_sum_exp的啊,batch版本有什么不同吗?谢谢您的回复~
How can I find '/checkpoints/finetuning/100.pt'? Can you share model checkpoints?