Skip to content

Entity-Aware Dual Co-Attention Network for Fake News Detection, EACL 2023 Findings

Notifications You must be signed in to change notification settings

SinHanYang/Dual-CAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dual-CAN

Code for EACL 2023 Findings Entity-Aware Dual Co-Attention Network for Fake News Detection

How to Run

  1. Put data in the same directory (bigru, BERT_based, Dual_CAN_model) of the code.
  2. For Bi-GRU and Dual-CAN model, need to preprocess the data by running
python preprocess.py --data_dir data
  1. train and test the model
python main.py --data_dir data --output_dir output
python main.py --data_dir data --output_dir output --mode 1

How to Create data

Preprocessing Data of GossipCop

  • Execute the code in data/GossipCop
python preprocess.py
python preprocess_tweets.py

Preprocessing Data of CoAID

  • Execute the code in data/CoAID
python get_data.py
python preprocess.py

Dependencies

python 3.7
torch 1.7.1
tensorflow 2.4.1
pytorch-lightning 1.2.3
spacy 3.0.5
seqeval 1.2.2
tqdm
numpy
pandas
scikit_learn
tagme
wikipediaapi

About

Entity-Aware Dual Co-Attention Network for Fake News Detection, EACL 2023 Findings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages