-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run_example.sh
36 lines (28 loc) · 1.23 KB
/
Run_example.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
#!/bin/sh
################################################################
# Example of running an experiment on the command line
################################################################
# These assume that the English EmoInt data are in directory ../emoint_ei-en relative to the package root directory
echo "------"
date
echo "Assuming EmoInt data is in directory ../emoint_ei-en"
# TRAINING
echo "------"
date
echo "Training..."
java -cp 'slda.jar:lib/*' cmd.CmdTSLDA -v ../emoint_ei-en/ei-en-anger-vocab.txt -tp ../emoint_ei-en/ei-en-anger-hac-ld.txt -d ../emoint_ei-en/ei-en-anger-corpus-train.txt -l ../emoint_ei-en/ei-en-anger-labels-train.txt -m MODEL_ei-en-anger.model
# TESTING
echo "------"
date
echo "Testing..."
java -cp 'slda.jar:lib/*' cmd.CmdTSLDA -v ../emoint_ei-en/ei-en-anger-vocab.txt -tp ../emoint_ei-en/ei-en-anger-hac-ld.txt -d ../emoint_ei-en/ei-en-anger-corpus-test.txt -l ../emoint_ei-en/ei-en-anger-labels-test.txt -m MODEL_ei-en-anger.model -t -p PREDICTIONS.txt
# EVALUATION
echo "------"
date
echo "Computing correlation..."
java -cp 'slda.jar:lib/*' cmd.CmdEval -p PREDICTIONS.txt -l ../emoint_ei-en/ei-en-anger-labels-test.txt
# CLEANUP
echo "------"
date
echo "To clean up:"
echo "rm -i {MODEL,PREDICTIONS}*"