-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_create_convir_dataset.sh
49 lines (44 loc) · 1.75 KB
/
run_create_convir_dataset.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
mkdir -p data/canard4ir/
# Main-A: hard sampling from view disagreement
for k in 10 20 30 40 50 100;do
python3 tools/construct_convir_dataset.py \
--topic data/canard/train.jsonl \
--collections /tmp2/jhju/datasets/cast2020/ \
--run0 runs/rerank_step1/cast20.canard.train.view0.monot5.top1000.trec \
--run1 runs/rerank_step1/cast20.canard.train.view1.monot5.top1000.trec \
--output data/canard4ir/canard4ir.train.convrerank.t${k}.txt \
--topk_pool 200 \
--topk_positive $k \
--n $k &
done
topk=40
# Main-B: hard negative from view0
python3 tools/construct_convir_dataset.py \
--topic data/canard/train.jsonl \
--collections /tmp2/jhju/datasets/cast2020/ \
--run0 runs/rerank_step1/cast20.canard.train.view0.monot5.top1000.trec \
--output data/canard4ir/canard4ir.train.convrerank.singleview0.txt \
--topk_pool 200 \
--topk_positive $topk \
--n $topk \
--singleview
# Main-B: hard negative from view1
python3 tools/construct_convir_dataset.py \
--topic data/canard/train.jsonl \
--collections /tmp2/jhju/datasets/cast2020/ \
--run0 runs/rerank_step1/cast20.canard.train.view1.monot5.top1000.trec \
--output data/canard4ir/canard4ir.train.convrerank.singleview1.txt \
--topk_pool 200 \
--topk_positive $topk \
--n $topk \
--singleview
# Main-B: hard negative from view disagreement [top20, reverview]
python3 tools/construct_convir_dataset.py \
--topic data/canard/train.jsonl \
--collections /tmp2/jhju/datasets/cast2020/ \
--run0 runs/rerank_step1/cast20.canard.train.view1.monot5.top1000.trec \
--run1 runs/rerank_step1/cast20.canard.train.view0.monot5.top1000.trec \
--output data/canard4ir/canard4ir.train.convrerank.reverseview.txt \
--topk_pool 200 \
--topk_positive $topk \
--n $topk