Traceback (most recent call last):
File "load_model.py", line 8, in <module>
test = nlp(sequence)
File "/home/dev/.local/lib/python3.6/site-packages/transformers/pipelines.py", line 794, in __call__
if self.model.config.id2label[label_idx] not in self.ignore_labels:
KeyError: 97
Hello,
I am trying to run NER on the pretrained BioBERT model. I have tried using both biobert_v1.1_pubmed and biobert_large.
I first created the pytorch model using these steps
I then created and tested an nerPipeline:
My code:
Error: