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

Can BioBERT be used for multilabel classification problem ? #159

Open
coolcoder001 opened this issue Mar 11, 2021 · 3 comments
Open

Can BioBERT be used for multilabel classification problem ? #159

coolcoder001 opened this issue Mar 11, 2021 · 3 comments

Comments

@coolcoder001
Copy link

Hi , this is a great project indeed. I was just wondering , can we use BioBERT for multilabel classification problem out of the box ? or do we need to modify the underlying BERT codebase for achieving the same ?

@wonjininfo
Copy link
Member

Hi,
We have a multi-class classification problem (Chemprot) as one of our examples, but our example scripts are currently not able to solve multi-label classification problems.
You can use BioBERT model (which is pre-trained weights), but you need to modify a few lines from our example scripts.
Thanks
Wonjin

@joey082497
Copy link

Hi, Thanks for making great project, I was able to study a lot.
I also want to do multi-label classification using BioBert.
May I know which part needs to be fixed?

@wonjininfo
Copy link
Member

Hi @joey082497,
I appreciate your interest in our work.

We have recently made resources of our participation ( codes and paper) in the DrugProt challenge available online.
In our recent paper on the DrugProt task, we used multi-label classification (relation extraction task) modellings, so I think you will be interested in the following repository.
Please check here: BioRE drugprot KU-AZ
The script utilizes Transformers library by Huggingface with PyTorch library.
Please also be informed that the pre-processed data format is slightly different, and you also need to provide vocab_add.txt and typeDict.json to the model.

Thank you!
Best,
Wonjin

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

3 participants