zjunlp / KnowPrompt

[WWW 2022] KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction
MIT License
194 stars 34 forks source link

About the calculation of \phi(r) #3

Closed Frankie123421 closed 2 years ago

Frankie123421 commented 2 years ago

hi, congratulations on your great work! I have a question after reading the paper (though I have not read the code yet). How do you calculate the value of \phi(r)? It seems that you don't explain that in the paper. Thank you.

njcx-ai commented 2 years ago

Hi, Thanks for your concern. We have introduced 𝜙𝑟 in the paper as "Furthermore, we adopt the weighted average function for 𝜙𝑟 to average embeddings of each words among C𝑟 to initialize these relation embeddings"