malllabiisc / EmbedKGQA

ACL 2020: Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
Apache License 2.0
414 stars 96 forks source link

Where's the definition of the function "hidden2rel" at line 125 in "KGQA/RoBERTa/model.py"? #44

Closed Ironeie closed 3 years ago

Ironeie commented 3 years ago

You define a variable named "hidden2rel" at line 85, but you call the function "hidden2rel" at line 125 in function "applyNonLinear", where there's no definition of function "hidden2rel". Sorry for my poor coding level, can you tell me where's the definition of the function "hidden2rel" or what it means?

Ironeie commented 3 years ago

Sorry to disturb you, my problem has been solved

ShaoZhangHao commented 1 year ago

Hi, I have the same question in “hidden2rel” too,I don not know how and why the hidden state can be converted into the relation_embeddings. Is there any relationship between the relation and hidden state?