Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.13 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.13 KB

Graph-based-text-classification

This is code for our proposed model in DL-NLP course. See proposed model here

  • Steps to run this model:
  1. Datasets of MR, SST-2, R8 and 20ng should be put under Data/ and path needs to be updated in config.py file
  2. For parameter tuning, use config.py file and change parameters.
  3. python3 train.py

For the baselines mentioned in results, please refer follwoing codes that we had implemeneted:

  • TF-IDF with Logistic Regression:TF-IDF + LR
  • LSTM with pre-trained GloVe embeddings(d=300) : LSTM - GloVe
  • For BERT, we used a package Simple Transformers
  • Code for TGCN and VGCN-BERT: gcn.py + adjacency.ipynb + train.py

Dataset Information -

See proposed model here

Results from our model -

See proposed model here

Project report can be found at Report.pdf