Code Monkey home page Code Monkey logo

mdfend-weibo21's Introduction

MDFEND: Multi-domain Fake News Detection

This is an official implementation for MDFEND: Multi-domain Fake News Detection which has been accepted by CIKM2021.

Dataset

The splited dataset (i.e., train, val, test) are in the MDFEND-Weibo21/data folder.

You can have access to the original dataset of Weibo21 only after an "Application to Use Weibo21 for Fake News Detection" has been submitted.

Code

Requirements

Refer to requirements.txt

You can run pip install -r requirements.txt to deploy the environment quickly.

pretrained_model

You can download pretrained model (Roberta) from https://drive.google.com/drive/folders/1y2k22iMG1i1f302NLf-bj7UEe9zwTwLR?usp=sharing and move all the files in the folder into the path MDFEND-Weibo21/pretrained_model/chinese_roberta_wwm_base_ext_pytorch.

Data Preparation

After you download the Weibo21 dataset, move the train.pkl, val.pkl and test.pkl into the path MDFEND-Weibo21/data.

Run

You can run this model through:

python main.py --model_name mdfend --batchsize 32 --lr 0.0007

Reference

Nan Q, Cao J, Zhu Y, et al. MDFEND: Multi-domain Fake News Detection[C]//Proceedings of the 30th ACM International Conference on Information & Knowledge Management. 2021: 3343-3347.

or in bibtex style:

@inproceedings{nan2021mdfend,
  title={MDFEND: Multi-domain Fake News Detection},
  author={Nan, Qiong and Cao, Juan and Zhu, Yongchun and Wang, Yanyan and Li, Jintao},
  booktitle={Proceedings of the 30th ACM International Conference on Information \& Knowledge Management},
  pages={3343--3347},
  year={2021}
}

mdfend-weibo21's People

Contributors

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