This project implements "Graph Convolutional Networks for Text Classification. Yao et al. AAAI2019." in PyTorch.
This implementation highly based on official code yao8839836/text_gcn.
- Python 3.6
- PyTorch 1.0
cd ./preprocess
- Run
python remove_words.py <dataset>
- Run
python build_graph.py <dataset>
cd ..
- Run
python train.py <dataset>
- Replace
<dataset>
with20ng
,R8
,R52
,ohsumed
ormr