Skip to content

midas-research/gpols-coling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPolS: A Contextual Graph-Based Language Model for Analyzing Parliamentary Debates and Political Cohesion

This codebase contains the python scripts for GPolS, the model for the COLING 2020 paper link.

Environment & Installation Steps

Python 3.6, Pytorch, and networkx.

pip install -r requirements.txt

Dataset and Preprocessing

Download the dataset from here.

Follow link to fine-tune BERT using speech transcripts on the classification task. Store the transcript and motion text features in folders "speeches/" and "motions/", respectively as .npy files.

Generate graph

python graph_make.py

Prepare model inputs and labels

python preprocess.py

Run

Execute the following python command to train GPolS:

python train.py

Cite

Consider citing our work if you use our codebase

@inproceedings{sawhney-etal-2020-gpols,
    title = "{GP}ol{S}: A Contextual Graph-Based Language Model for 
Analyzing Parliamentary Debates and Political Cohesion",
    author = "Sawhney, Ramit  and
      Wadhwa, Arnav  and
      Agarwal, Shivam  and
      Shah, Rajiv Ratn",
    booktitle = "Proceedings of the 28th International Conference on Computational Linguistics",
    month = dec,
    year = "2020",
    address = "Barcelona, Spain (Online)",
    publisher = "International Committee on Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.coling-main.426",
    doi = "10.18653/v1/2020.coling-main.426",
    pages = "4847--4859",
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages