buppt / ChineseNER

中文命名实体识别,实体抽取,tensorflow,pytorch,BiLSTM+CRF
1.39k stars 394 forks source link

训练模型报错 #1

Closed 7xw7 closed 6 years ago

7xw7 commented 6 years ago

错误代码: train len: 10721 test len: 3351 valid len 2681 Traceback (most recent call last): File "train.py", line 141, in calculate(x_test,y_test,epoch) File "train.py", line 63, in calculate if j<len(y) and id2tag[y[j]][0]=='B': IndexError: string index out of range

buppt commented 6 years ago

我修改了这部分的代码,如果还有问题的话欢迎反馈。