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 Rename Labels in a Flair Dataset?[Question]: #3472

Open
DonaldFeuz opened this issue Jun 17, 2024 · 0 comments
Open

How to Rename Labels in a Flair Dataset?[Question]: #3472

DonaldFeuz opened this issue Jun 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@DonaldFeuz
Copy link

Question

Hello,

I want to fine-tune HunFlair-Gene on the JNLPBA dataset, but I am getting mostly null scores during training.

I believe this is because the dataset does not contain gene mentions but rather mentions of proteins and other labels. I tested my code on a dataset that contains only gene labels (BC2GM) and obtained good results.

To solve my problem, I tried loading the JNLPBA dataset from flair.datasets using:

from flair.datasets import JNLPBA

Load the JNLPBA dataset

jnlpba_dataset = JNLPBA()

Then, I attempted to rename the protein labels to "Gene" and remove the other labels, but it appears that Flair does not provide the ability to rename labels in a dataset.

How can I work with JNLPBA to compare my scores with those of HunFlair?

@DonaldFeuz DonaldFeuz added the question Further information is requested label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant