zjy-ucas / ChineseNER

A neural network model for Chinese named entity recognition
1.78k stars 568 forks source link

求助,这个报错是什么原因,用的自己的数据和删除部分自带的训练数据后都会有该错误 #82

Closed Zhenguoshen closed 4 years ago

Zhenguoshen commented 4 years ago

File "D:\nlp\ChineseNER\loader.py", line 110, in tags = [tag_to_id[w[-1]] for w in s]

KeyError: 'S-ORG'

Zhenguoshen commented 4 years ago

问题已经解决

ghost commented 3 years ago

File "D:\nlp\ChineseNER\loader.py", line 110, in tags = [tag_to_id[w[-1]] for w in s]

KeyError: 'S-ORG'

你好请问你是怎么解决的,我也遇到了这个问题