-
Notifications
You must be signed in to change notification settings - Fork 4
/
glove_reproduction.sh
24 lines (23 loc) · 1.27 KB
/
glove_reproduction.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
#!/usr/bin/env bash
#parser.add_argument("--test_number", type=int, help="Number of the weat test to run", required=False)
#parser.add_argument("--permutation_number", type=int, default=None,
# help="Number of permutations (otherwise all will be run)", required=False)
# parser.add_argument("--output_file", type=str, default=None, help="File to store the results)", required=False)
# parser.add_argument("--lower", type=bool, default=False, help="Whether to lower the vocab", required=False)
# parser.add_argument("--similarity_type", type=str, default="cosine", help="Which similarity function to use",
# required=False)
# parser.add_argument("--embedding_file", type=str)
for similarity_type in "cosine" ; do
#for similarity_type in "euclidean" ; do
for test_number in 1 2 3 4 5 6 7 8 9 10 ; do
echo $similarity_type
echo $test_number
python weat.py \
--test_number $test_number \
--permutation_number 1000000 \
--output_file ./results/glove_wiki_${similarity_type}_${test_number}_cased.res \
--lower False \
--use_glove True \
--similarity_type $similarity_type |& tee ./results/glove_wiki_${similarity_type}_${test_number}_cased.out
done
done