Giter VIP home page Giter VIP logo

get's Introduction

GET

Source code and datasets for the paper "Evidence-aware Fake News Detection with Graph Neural Networks".

Requirements

We use Pytorch 1.9.1 and python 3.6. Other requirements are in requirements.txt.

pip install -r requirements.txt

Data

We utilize two widely used datasets.

Usage

You can run the commands below to train and test our model on Snopes Dataset.

python MasterFC/master_get.py --dataset="Snopes" \
                             --cuda=1 \
                             --fixed_length_left=30 \
                             --fixed_length_right=100 \
                             --log="logs/get" \
                             --loss_type="cross_entropy" \
                             --batch_size=32 \
                             --num_folds=5 \
                             --use_claim_source=0 \
                             --use_article_source=1 \
                             --path="formatted_data/declare/" \
                             --hidden_size=300 \
                             --epochs=100 \
                             --num_att_heads_for_words=5 \
                             --num_att_heads_for_evds=2 \
                             --gnn_window_size=3 \
                             --lr=0.0001 \
                             --gnn_dropout=0.2 \
                             --seed=123756 \
                             --gsl_rate=0.6

You can also simply run the bash script.

sh run_snopes.sh

or

sh run_politifact.sh (on the PolitiFact dataset)

Citation

Please cite our paper if you use the code:

@misc{xu2022evidenceaware,
      title={Evidence-aware Fake News Detection with Graph Neural Networks},
      author={Weizhi Xu and Junfei Wu and Qiang Liu and Shu Wu and Liang Wang},
      year={2022},
      eprint={2201.06885},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Acknowledgement

The general structure of our codes inherites from the open-source codes of MAC, we thank them for their great contribution to the research community of fake news detection.

get's People

Contributors

hyperwjf avatar jason98xu 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.