stanleylsx / entity_extractor_by_ner

基于Tensorflow2.3开发的NER模型,都是CRF范式,包含Bilstm(IDCNN)-CRF、Bert-Bilstm(IDCNN)-CRF、Bert-CRF,可微调预训练模型,可对抗学习,用于命名实体识别,配置后可直接运行。
390 stars 73 forks source link

ValueError: Shapes (27, 27) and (8, 8) are incompatible #41

Closed manman246 closed 2 years ago

manman246 commented 2 years ago

请问我自己训练模型的时候报这个错要怎么改呢

LakersUpAma commented 2 years ago

你好,你解决了嘛。 这个应该是你标注的标签的数量跟原来的B-LOC,B-ORG标签数量不匹配造成的。请问你知道为什么自己标注的数据在训练集里显示数量为0吗。