Skip to content
Discussion options

You must be logged in to vote

I think you are mixing up node IDs and the IDs that are used to map to words. While the edge_index always needs to refer to 0 to number_of_nodes - 1 (to index the corresponding feature matrix), you can have a node ID/attribute for each node that maps to the ID of the corresponding word.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yaoysyao
Comment options

@rusty1s
Comment options

Answer selected by yaoysyao
@yaoysyao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants