haitian-sun / GraftNet

BSD 2-Clause "Simplified" License
268 stars 56 forks source link

how to propagate from document to entity? #5

Closed nttmac closed 5 years ago

nttmac commented 5 years ago

Thank you for sharing your source code!

But i am confused with the code about "document -> entity" in the file graftnet.py. Can I paraphrase that the document get the pr score from the entities which mentioned in the doc and then entities get the pr score from document?Why does the pagerank_d update before computing the d2e_emb while pagerank_f update after computing the f2e_emb?

haitian-sun commented 5 years ago

pagerank_f is computed by attending to entities' embeddings. We don't compute any attention over documents.