This is the TensorFlow implementation for the paper <<EANN: Event Adversarial Neural Networks for Multi-Modal Fake News Detection>>, including industrial deployment.
- python 3
- tensorflow == 1.14 (prefer to 1.14, >1.12 also satisfied)
- If encounter mismatch GPU Driver problem, please install tensorflow_gpu by
conda install tensorflow-gpu=1.14
# train
python train.py -m train
# package model for inference
python train.py -m package
# predict
python predict.py- data_new
The train, evaluate, test datas are saved here.
- process_data
Make data, no need to modify if only run the example.
The main EANN model.
Revise the configuration in this file.
The function provides data input for the model.
Supplenmentary functions for the main model.
Function for training and packaging the model.
Function for prediction the model.