I tried to use your class BertCRFForNER_v3(BertPreTrainedModel) in this notebook: https://github.com/huggingface/notebooks/blob/main/examples/token_classification.ipynb
Unfortunately, I get the following error message: IndexError: index -100 is out of bounds for dimension 0 with size 9
Could you maybe help me further what I would have to change so that I can use BERTCRF instead of the AutoModelForTokenClassification.
Thanks in advance! I would really appreciate your help.
I tried to use your class
BertCRFForNER_v3(BertPreTrainedModel)in this notebook: https://github.com/huggingface/notebooks/blob/main/examples/token_classification.ipynbUnfortunately, I get the following error message: IndexError: index -100 is out of bounds for dimension 0 with size 9
Could you maybe help me further what I would have to change so that I can use BERTCRF instead of the AutoModelForTokenClassification.
Thanks in advance! I would really appreciate your help.