liuyukid / transformers-ner

Pytorch-Named-Entity-Recognition-with-transformers
209 stars 44 forks source link

evaluate key error -1 #17

Open Hansyvea opened 3 years ago

Hansyvea commented 3 years ago

preds_list[i].append(label_map[preds[i][j]])

TobeyLi commented 3 years ago

preds_list[i].append(label_map[preds[i][j]])

hello, hansyvea, I found the problem is that you don't set the max_seq_length in the methond "convert_examples_to_features", you should change it to your own figure.

FredlinT commented 2 years ago

i meet this question too, how dou you fix it

qnamng commented 1 year ago

hello, i meet this question too, how do you fix it, please help