dmis-lab / biobert-pytorch

PyTorch Implementation of BioBERT
http://doi.org/10.1093/bioinformatics/btz682
Other
308 stars 107 forks source link

Performing RE on new text #30

Open ChrisPaneque opened 2 years ago

ChrisPaneque commented 2 years ago

Hi, I have fine tuned the model on RE, using the GAD dataset. How can I predict relations on new text using the resulting model? Thnks!

zhangweizhenGitHub commented 2 years ago

hi,ChrisPaneque I also have your question, and do you have some answer now?

ChrisPaneque commented 2 years ago

Hi, Zhangweizhen What I have done is uploading the resulting model to Hugging Face, from there it can be used with transformers to predict, you can find it with this name ChrisUPM/BioBERT_Re_trained, there, in the Files and versions tag, you can find a notebook named Model_predict_Final that I have uploaded with an example on performing predictions on new texts, is quite easy to use. If you are nor able to find it there, i can send it to you by email. Hope it works!!

liigoQi commented 2 years ago

Hi, Zhangweizhen What I have done is uploading the resulting model to Hugging Face, from there it can be used with transformers to predict, you can find it with this name ChrisUPM/BioBERT_Re_trained, there, in the Files and versions tag, you can find a notebook named Model_predict_Final that I have uploaded with an example on performing predictions on new texts, is quite easy to use. If you are nor able to find it there, i can send it to you by email. Hope it works!!

Thanks a lot! Your notebook is really helpful 👍

Wangrulin-1128 commented 1 year ago

I run the code of RE,but there is a problem."TypeError: TextInputSequence must be str" Do you have meet this? How can I solve it?

ChrisPaneque commented 1 year ago

I run the code of RE,but there is a problem."TypeError: TextInputSequence must be str" Do you have meet this? How can I solve it?

Hi, it looks like your data input type is not a string, check my comment above, you can find some helpfull notebooks for performing RE easy.

Meiling-Sun commented 6 months ago

Hi, i want to use my custom data to fine tune RE model, do you have any experience about how to convert the data to correct format can directly feed to Biobert model? only the format same as gad dataset works?