Replies: 1 comment 1 reply
-
One way of doing this would be to add a virtual node that has incoming edges from all other nodes in the graph, as done in this paper, you can find the implementation here.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m using Huggingface Transformers to encode a given text, and then initializing the node embeddings of graph with token representations from the Transformers LM. As a part of my application, I need to define a special node (called, for example, [INTERACTION] node) whose embeddings should be learnt during the training. This special node is used as a node that learns how to combine a group of entities in the given graph. I’m a bit lost in this process, though; looking at the documentation, I was not able to find a way to this end. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions