text_gcn.pytorch
text_gcn.pytorch copied to clipboard
PyTorch implementation of "Graph Convolutional Networks for Text Classification. Yao et al. AAAI2019."
text_gcn.pytorch
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.
Require
- Python 3.6
- PyTorch 1.0
Running training and evaluation
-
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
Visualization
R8
