How to fine tune bert on entity recognition?

Yes! I changed a little structureimage
and here is the code for the same,

from transformers import AutoTokenizer, AutoModel 
model = AutoModel.from_pretrained(r"E:\model\model") 
tokenizer = AutoTokenizer.from_pretrained(r"E:\model\tokenizer") 

I am getting an error which is ValueError : unable to parse E:\model\model\config.json as a URL or as a local path

Hey, I made it work! I think it was happening coz I trained the model on GPUā€™s on kaggle kernels, and downloaded it and making it work on CPU!

1 Like

Great that it finally worked!

@ayush488 @nielsr : What changes did you make, Ayush?
How did you customize his code?