摘要: 在使用 LSTM+CRF 做 NER 时,使用的 CRF 实现来自简明条件随机场CRF介绍,loss 的输出维度是 (bs,) 而由于自己不清楚 mask 的使用方式,在 Embedding 层中加入了 mask_zero=True,同时在后面使用了 Masking 层,导致出现以下错误: tens 阅读全文
posted @ 2020-06-08 10:44 GNEPIUHUX 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 使用sklearn中f1_score过程中的警告 警告信息:UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples. 'precision', 'p 阅读全文
posted @ 2020-06-08 10:25 GNEPIUHUX 阅读(384) 评论(0) 推荐(0) 编辑