Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: index -100 is out of bounds for dimension 0 with size 9 #9

Open
venti07 opened this issue Aug 22, 2022 · 0 comments
Open

Comments

@venti07
Copy link

venti07 commented Aug 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant