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

Performing RE on new text #30

Open
ChrisPaneque opened this issue Apr 6, 2022 · 6 comments
Open

Performing RE on new text #30

ChrisPaneque opened this issue Apr 6, 2022 · 6 comments

Comments

@ChrisPaneque
Copy link

ChrisPaneque commented Apr 6, 2022

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
Copy link

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

@ChrisPaneque
Copy link
Author

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
Copy link

liigoQi commented Jul 15, 2022

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
Copy link

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
Copy link
Author

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
Copy link

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?

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

5 participants