Hyperwjf / CF-FEND

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CF-FEND

Source code and datasets for the paper "Bias Mitigation for Evidence-aware Fake News Detection by Causal Intervention".

Requirements

Required packages are in requirements.txt. You can install packages as follows:

pip install -r requirements.txt

Data

Our dataset can be downloaded by this link. Place it in the same directory as counterfactual_inference.

Usage

You can run the bash scripts in the directory (run) to train and test models (MAC/bert) on Snopes (sens) or PolitiFact (pomt) Dataset.

For example, run the mac model on Snopes:

sh run/run_mac_snes.sh

Citation

Please cite our paper if you use the code:

@inproceedings{wu2022bias,
  title     = {Bias Mitigation for Evidence-aware Fake News Detection by Causal Intervention},
  author    = {Wu, Junfei and Liu, Qiang and Xu, Weizhi and Wu, Shu},
  booktitle = {Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval},
  pages     = {2308--2313},
  year      = {2022}
}

Acknowledgment

We refer to the work and code of fake news reasoning. We sincerely thank them for their great contribution to the research community of fake news detection.

About


Languages

Language:Python 96.2%Language:Shell 3.8%