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

How to use prefix ner tags with skweak aggregation.HMM #86

Open
javinator48 opened this issue Apr 3, 2024 · 1 comment
Open

How to use prefix ner tags with skweak aggregation.HMM #86

javinator48 opened this issue Apr 3, 2024 · 1 comment

Comments

@javinator48
Copy link

Currently I am trying to apply aggregation.HMM on pretrained hugging face models on the wikineural dataset( https://huggingface.co/datasets/Babelscape/wikineural) and I have these tags ['O', 'B-PER', 'I-PER', 'B-ORG', 'I-ORG', 'B-LOC', 'I-LOC', 'B-MISC', 'I-MISC']. However I get an error RuntimeError: Initial labels should not have a prefix. How can I handle these type of tags?
Screenshot from 2024-04-02 22-48-18

@javinator48
Copy link
Author

Here is the error message
Screenshot from 2024-04-02 22-50-39

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