Skip to content

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

Description

@venti07

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions