-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_new_data.sh
43 lines (39 loc) · 1.73 KB
/
create_new_data.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
# remove duplicates
cmd="python compare_data.py \
--remove_doubles \
--files_a data/martin_data/train.jsonl data/martin_data/dev.jsonl data/martin_data/test.jsonl \
--files_b new_data/martin_data/train.jsonl new_data/martin_data/dev.jsonl new_data/martin_data/test.jsonl"
cmd="python compare_data.py \
--remove_doubles \
--files_a data/suc_train.jsonl data/suc_dev.jsonl data/suc_test.jsonl \
--files_b new_data/train.jsonl new_data/dev.jsonl new_data/test.jsonl"
#$cmd
# data="./new_data"
# for data in "./data" "./data/martin_data";
# do
data="./data"
suffix="lower.both"
cmd="python lowercase_ner_data.py \
--infiles ${data}/train.jsonl ${data}/dev.jsonl ${data}/test.jsonl \
--outfiles ${data}/train.${suffix}.jsonl ${data}/dev.${suffix}.jsonl ${data}/test.${suffix}.jsonl \
--both"
$cmd
suffix="lower.only"
cmd="python lowercase_ner_data.py \
--infiles ${data}/train.jsonl ${data}/dev.jsonl ${data}/test.jsonl \
--outfiles ${data}/train.${suffix}.jsonl ${data}/dev.${suffix}.jsonl ${data}/test.${suffix}.jsonl"
$cmd
suffix="ne_lower.both"
cmd="python lowercase_ner_data.py \
--infiles ${data}/train.jsonl ${data}/dev.jsonl ${data}/test.jsonl \
--outfiles ${data}/train.${suffix}.jsonl ${data}/dev.${suffix}.jsonl ${data}/test.${suffix}.jsonl \
--both \
--ne_only"
$cmd
suffix="ne_lower.only"
cmd="python lowercase_ner_data.py \
--infiles ${data}/train.jsonl ${data}/dev.jsonl ${data}/test.jsonl \
--outfiles ${data}/train.${suffix}.jsonl ${data}/dev.${suffix}.jsonl ${data}/test.${suffix}.jsonl \
--ne_only"
$cmd
# done