Home

Awesome

Prompt Tuning on Graph-augmented Low-resource Text Classification

We provide the implementation of G2P2 and G2P2* model, which is the source code for the TKDE journal

"Prompt Tuning on Graph-augmented Low-resource Text Classification", and the link is https://ieeexplore.ieee.org/abstract/document/10633805.

The repository is organised as follows:

For pre-train:

On Cora dataset,

python main_train.py 

If on Amazon datasets, it should be:

python main_train_amazon.py

For testing:

(1) For G2P2, On Cora dataset,

python main_test.py 

If on Amazon datasets, it should be:

python main_test_amazon.py

(2) For G2P2*,

cd meta_net

On Cora dataset,

python main_cog2p2_cora.py 

If on Amazon datasets, it should be:

python main_cog2p2_amazon.py