-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_lexical_corpus_evaluation.sh
31 lines (28 loc) · 1.26 KB
/
run_lexical_corpus_evaluation.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
#! /bin/bash
all_corpora=(\
"debate_org-all_posts--glove-format.txt" \
"iac_posts_combined--glove-format.txt" \
"iac_posts_createdebate--glove-format.txt" \
"iac_posts_convinceme--glove-format.txt" \
"iac_posts_fourforums--glove-format.txt" \
"debate_org-ethnicity-african-american-posts--glove-format.txt" \
"debate_org-ethnicity-european-american-posts--glove-format.txt" \
"debate_org-gender-female-posts--glove-format.txt" \
"debate_org-gender-male-posts--glove-format.txt" \
"debate_org-age_groups-22-below-posts--glove-format.txt" \
"debate_org-age_groups-23-up-posts--glove-format.txt" \
"cmv-text_only--glove-format.txt")
for i in ${!all_corpora[*]}
do
echo ""
echo -e "\e[1;31m================================================================================\e[0m"
echo -e "\e[1;31mWorking on ${all_corpora[$i]}...\e[0m"
python lexical_corpus_evaluation.py \
--data "output/glove_format/${all_corpora[$i]}" \
--words_of_interst "data/lexical-analysis-lexicon.json" \
--most_common 100 \
--positive_word_list "data/positive-words.txt" \
--negative_word_list "data/negative-words.txt" \
--output "output/lexical_corpus_evaluation" \
--processing_cores 7
done