luopeixiang / named_entity_recognition

中文命名实体识别(包括多种模型:HMM,CRF,BiLSTM,BiLSTM+CRF的具体实现)
2.13k stars 537 forks source link

请问数据集有哪些需要注意的点吗 #47

Open parkLGW opened 2 years ago

parkLGW commented 2 years ago

用我自己的数据集进行训练,训练过程是没问题的,但是进行评估的时候出现这个报错: Traceback (most recent call last): File "C:/Users/gavin/PycharmProjects/named_entity_recognition-master/test.py", line 68, in main() File "C:/Users/gavin/PycharmProjects/named_entity_recognition-master/test.py", line 55, in main crf_word2id, crf_tag2id) File "C:\Users\gavin\PycharmProjects\named_entity_recognition-master\models\bilstm_crf.py", line 170, in test pred_tag_lists = [pred_tag_lists[i] for i in indices] File "C:\Users\gavin\PycharmProjects\named_entity_recognition-master\models\bilstm_crf.py", line 170, in pred_tag_lists = [pred_tag_lists[i] for i in indices] IndexError: list index out of range