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

Question: Is it possible get the embedding of the relations and entities separately using Ontoprotein ? #33

Open
anonimoustt opened this issue May 23, 2024 · 2 comments

Comments

@anonimoustt
Copy link

Hi,

I am just curious is it possible to get the embedding of proteins and relations in https://www.zjukg.org/project/ProteinKG25/ separately using huggingface ontoprotein model ( https://huggingface.co/zjunlp/OntoProtein)? Let us say,

Protein_1 Enables Protein_2 is triple in the knowledge graph.

Is it to get the embedding of Protein_1, Enables, Protein_2 separately using https://huggingface.co/zjunlp/OntoProtein

@Alexzhuan
Copy link
Collaborator

You can obtain the embedding of a protein sequence by applying mean pooling to the hidden states from last layer. However, the relation embedding is not available.

@anonimoustt
Copy link
Author

Hi, I see the protein knowledge graph https://www.zjukg.org/project/ProteinKG25/ in your github which is really interesting. Do you have more knowledge graphs on full protein relations? If there are more knowledge graph like ProteinKG25 would you please share?

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

2 participants