Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvo09 committed Jan 18, 2021
1 parent 2f89db4 commit ba093b1
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
File renamed without changes.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,51 @@ This is the repository to reproduce results in the paper
# Hierarchical Multi-head Attentive Network
![alt text](https://github.com/nguyenvo09/EACL2021/blob/main/examples/mac.png)

# Usage
## 1. Install required packages
We use Pytorch 0.4.1 and python 3.5.
```
pip install requirements.txt
```
## 2.1 Running experiment for Snopes dataset (Table 2)
```
mkdir logs
python Masters/master_mac.py --dataset="Snopes" \
--cuda=1 \
--fixed_length_left=30 \
--fixed_length_right=100 \
--log="logs/mac" \
--loss_type="cross_entropy" \
--batch_size=32 \
--num_folds=5 \
--use_claim_source=0 \
--use_article_source=1 \
--num_att_heads_for_words=5 \
--num_att_heads_for_evds=2 \
--path="../formatted_data/declare/" \
--hidden_size=300 \
--epochs=100
```

## 2.2 Running experiment for PolitiFact dataset (Table 3)
```
mkdir logs
python Masters/master_mac.py --dataset="Politifact" \
--cuda=1 \
--fixed_length_left=30 \
--fixed_length_right=100 \
--log="logs/mac" \
--loss_type="cross_entropy" \
--batch_size=32 \
--num_folds=5 \
--use_claim_source=1 \
--use_article_source=1 \
--num_att_heads_for_words=3 \
--num_att_heads_for_evds=1 \
--path="../formatted_data/declare/" \
--hidden_size=300 \
--epochs=100
```

# Citation
If you feel our paper and resources are useful, please cite our work as follows:
Expand Down
16 changes: 16 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
dill
tqdm==4.31.1
pandas==0.23.1
nltk==3.4.5
boto3
requests
regex
sacremoses
scipy
sklearn
hyperopt
Pillow
tensorboardX==1.4
spacy==2.2.3
overrides
h5py==2.10.0

0 comments on commit ba093b1

Please sign in to comment.