-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfasttext_en.sh
28 lines (27 loc) · 1.51 KB
/
fasttext_en.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
#!/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" "csls" ; do
for similarity_type in "cosine" ; 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/fasttext_en_${similarity_type}_${test_number}.res \
--lower True \
--use_glove False \
--embedding_vocab \
/work/gglavas/data/word_embs/yacle/fasttext/200K/npformat/ft.wiki.en.300.vocab \
--embedding_vectors \
/work/gglavas/data/word_embs/yacle/fasttext/200K/npformat/ft.wiki.en.300.vectors \
--similarity_type $similarity_type |& tee ./results/fasttext_en_${similarity_type}_${test_number}.out
done
done