yao8839836 / text_gcn

Graph Convolutional Networks for Text Classification. AAAI 2019
1.35k stars 434 forks source link

node labels of vocab words #136

Open riyaj8888 opened 2 years ago

riyaj8888 commented 2 years ago

https://github.com/yao8839836/text_gcn/blob/962223652e9bb164ac2d83cd09fc7b8845ce860b/build_graph.py#L369

in the above line of code , you were using all zeros as labels for vocab words. can you please explain why are you doing ? and during training we only have labels for documents ,then how are we creating labels for vocab words. thanks in advance will appreciate your help

cocoiit commented 1 year ago

They are not providing labels for the vocab nodes as they don't contribute to the learning. Only the edge weights contribute!