GithubHelp home page GithubHelp logo

jack-chagarr / fake-news-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenxwh/fake-news-detection

0.0 0.0 0.0 8.16 MB

AAAI ICWSM-2022 Evaluation of Fake News Detection with Knowledge-Enhanced Language Models

Shell 0.71% Python 98.39% Jupyter Notebook 0.91%

fake-news-detection's Introduction

Fake News Detection

Official implementation for experiments in the paper "Evaluation of Fake News Detection with Knowledge-Enhanced Language Models".
In Proceedings of the Sixteenth International AAAI Conference on Web and Social Media (AAAI ICWSM-2022).

Fake news detection with BERT, RoBERTa and various knowledge-enhanced PLMs including ERNIE, KnowBert, KEPLER and K-ADAPTER.
Experimented on LIAR and COVID-19 dataset.

Get Started

git clone https://github.com/chenxwh/fake-news-detection.git
cd fake_news_detection

Install Dependencies

bash install_libs

Download PLMs weights

To train or test on ERNIE, KnowBert, KEPLER and K-ADAPTER, we need to download the pretrained weights from the corresponding repositories.
After downloading the wieghts, change the path to the weights in src/config.yaml.

Train and Test

Modify hyper-parameters in src/config.yaml. Run following to train and rest on the fake news detection datasets

cd src
python main.py --mode train --dataset liar --model bert-base  --num_labels 6 --logging --verbose
python main.py --mode test --dataset liar --model bert-base --num_labels 6 --logging

Citation

if you find the work helpful, please consider citing:

@inproceedings{whitehouse2022evaluation,
  title={Evaluation of Fake News Detection with Knowledge-Enhanced Language Models},
  author={Whitehouse, Chenxi and Weyde, Tillman and Madhyastha, Pranava and Komninos, Nikos},
  booktitle={Proceedings of the International AAAI Conference on Web and Social Media},
  volume={16},
  pages={1425--1429},
  year={2022}
}

fake-news-detection's People

Contributors

chenxwh 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.