forked from robustness-gym/summvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load.sh
25 lines (21 loc) · 917 Bytes
/
load.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Make sure to first run: python -m spacy download en_core_web_lg
# Generate predictions from 4 models for wikinews.jsonl file
python ../../generation.py --model pegasus-cnndm --data_path wikinews.jsonl &&
python ../../generation.py --model pegasus-xsum --data_path wikinews.jsonl &&
python ../../generation.py --model bart-cnndm --data_path wikinews.jsonl &&
python ../../generation.py --model bart-xsum --data_path wikinews.jsonl &&
# Join predictions with original dataset
python ../../join.py \
--data_path wikinews.jsonl \
--generation_paths \
pegasus-cnndm.wikinews.predictions \
pegasus-xsum.wikinews.predictions \
bart-cnndm.wikinews.predictions \
bart-xsum.wikinews.predictions \
--output_path wikinews-decoded.jsonl &&
# Cache results
python ../../preprocessing.py \
--workflow \
--dataset_jsonl wikinews-decoded.jsonl \
--processed_dataset_path wikinews.cache