错误代码:
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
错误代码: 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