![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BILSTM_CRF
今天也是要加油的DD
这个作者很懒,什么都没留下…
展开
-
Bert-BiLSTM-CRF pytorch 代码解析-3:def _viterbi_decode
理解 github上代码:Bert-BiLSTM-CRF-pytorchGithub 相关链接: link.这部分用于解码阶段def _viterbi_decode(self, feats, mask=None): """ Args: feats: size=(batch_size, seq_len, self.target_size+2) mask: size=(batch_size, seq_len) Returns: de原创 2020-11-18 16:28:51 · 1137 阅读 · 0 评论 -
Bert-BiLSTM-CRF pytorch 代码解析-2:def _score_sentence(self, scores, mask, tags)
理解 github上代码:Bert-BiLSTM-CRF-pytorchGithub 相关链接: link.neg_log_likelihood_loss = forward_score - gold_score这部分应该是为了计算真实径的分数(gold_score) def _score_sentence(self, scores, mask, tags): """ Args: scores: size=(seq_len, batch原创 2020-11-18 13:58:03 · 541 阅读 · 0 评论 -
Bert-BiLSTM-CRF pytorch 代码解析-1:def _forward_alg(self, feats, mask=None)
理解 github上代码:Bert-BiLSTM-CRF-pytorchGithub 相关链接: link. def _forward_alg(self, feats, mask=None): """ Do the forward algorithm to compute the partition function (batched). Args: feats: size=(batch_size, seq_len, sel原创 2020-11-17 20:24:24 · 2792 阅读 · 1 评论