Skip to content

THUMLP/TensorGCN_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TensorGCN_pytorch

A pytorch version implementation of TensorGCN in paper:

Liu X, You X, Zhang X, et al. Tensor graph convolutional networks for text classification[C]//Proceedings of the AAAI Conference on Artificial Intelligence. 2020, 34(05): 8409-8416.

For Tensorflow version, please click here.

Requirement

  • python 3.6
  • pytorch 1.7.1
  • torch-geometric 1.7.2

Reproduing Results

Build three graphs

python build_graph.py --gen_seq --gen_sem --gen_syn --dataset [dataset name] --corenlp [path]

Here, [dataset name] could be 20ng, R8, R52, mr, ohsumed. You can also try your own dataset by processing your data similar to the data provided. [path] is the path of StanfordCoreNLP you installed.

Training and Evaluating

python train.py --do_train --do_valid --do_test --dataset [dataset name]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages