0
with open ("path/nlp_ner_model.p",'rb') as f:
    ner = pickle.load(f)

I am using the above code and getting an error:

Can't get attribute 'default_serialize_torch_model' on <module 'thinc.shims.pytorch' from 'C:\\Users\\name\\anaconda3\\lib\\site-packages\\thinc\\shims\\pytorch.py'>

I have used this code to import all the other models and worked fine but not working for the recently trained model. Thank you for your time!!

Arun Vijay
  • 39
  • 5

0 Answers0