Git Product home page Git Product logo

stancecs's Introduction

StanceCS

Libraries

python==3.8.10

transformers==4.1.1

pytorch==1.10.0

Common Sense

Run the code to train the module of RGCN and extract the common sense feature of the data:

python preprocess_graph.py
python train_and_extract_graph_features.py
python extract_graph_features.py

You can also download the trained features and data from https://drive.google.com/file/d/1HYiIVxTTHuqpWhGxqW8q6iFQQSXGNR05/view?usp=sharing.

The original dataset can be downloaded from https://github.com/emilyallaway/zero-shot-stance.

The ConceptGraph can be downloaded from https://drive.google.com/file/d/19klcp69OYEf29A_JrBphgkMVPQ9rXe1k/view.

Sentiment

The code for training of SentiBERT can be found in https://github.com/12190143/SentiX.

Stance Detection

python run_bert.py

Some of our code comes from https://github.com/declare-lab/kingdom.

Cite

@article{luo2022exploiting,

title={Exploiting Sentiment and Common Sense for Zero-shot Stance Detection},

author={Luo, Yun and Liu, Zihan and Shi, Yuefeng and Zhang, Yue},

journal={arXiv preprint arXiv:2208.08797},

year={2022}

}

stancecs's People

Contributors

dawidm avatar luoxiaoheics avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.