Closed tbabinet closed 4 years ago
@tbabinet Could you provide a full code snippet?
If you want to use the NER pipeline, then you need to use a fine-tuned model of e.g. SciBERT (the "normal" SciBERT model from model hub can't be used)
Hello
It seems I had simply been misusing my model : I was instantiating an AutoModel
, when I should have been using the BertForTokenClassification
class.
Thanks anyway ! :)
glad you figured it out.
Hello, I've been trying to use scibert_scivocab_uncased with the NER pipeline from HuggingFace, but I can't seem to make it work. Each time I try to run the ner pipeline, my script crashes. The code is very simple :
nlp(abstract)
and the error is the following :KeyError Traceback (most recent call last)