biobert-pytorch icon indicating copy to clipboard operation
biobert-pytorch copied to clipboard

Performing RE on new text

Open ChrisPaneque opened this issue 2 years ago • 6 comments

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!

ChrisPaneque avatar Apr 06 '22 15:04 ChrisPaneque

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

zhangweizhenGitHub avatar Jun 15 '22 02:06 zhangweizhenGitHub

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!!

ChrisPaneque avatar Jun 15 '22 11:06 ChrisPaneque

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 👍

liigoQi avatar Jul 15 '22 08:07 liigoQi

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?

Wangrulin-1128 avatar Sep 04 '23 09:09 Wangrulin-1128

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.

ChrisPaneque avatar Sep 07 '23 13:09 ChrisPaneque

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?

Meiling-Sun avatar May 02 '24 11:05 Meiling-Sun