Bert-BiLSTM-CRF pytorch 代码解析-1:def _forward_alg(self, feats, mask=None)
理解github上代码:Bert-BiLSTM-CRF-pytorchGithub相关链接:link.neg_log_likelihood_loss=forward_score-gold_score这部分应该是为了计算所有路径的分数(forward_score)def_forward_alg(self,feats,mask=None):"""Dotheforwardalgorithmtocompu