Graph Convolutional Networks for Text Classification
Python 2.7 or 3.6
Tensorflow >= 1.4.0
- 
Run
python remove_words.py - 
Run
python build_graph.py - 
Run
python train.py 
- 
/data/20ng.txtindicates document names, training/test split, document labels. Each line is for a document. - 
/data/corpus/20ng.txtcontains raw text of each document, each line is for the corresponding line in/data/20ng.txt - 
Change
dataset = '20ng'inremove_words.py,build_graph.pyandtrain.pywhen producing results for other datasets.