-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexp_semimarkov.sh
43 lines (31 loc) · 879 Bytes
/
exp_semimarkov.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
#!/bin/bash
cat email_succ.temp > email_succ.txt
date >> email_succ.txt
curr_date=$(date +%Y%m%d_%H%M)
seperator="_"
lang="$1"
set="$2"
beginIndex=1
endIndex=1
if [ "$set" == "full" ]
then
beginIndex=2
endIndex=10
fi
l2=0.0005
NElen=6
if [ "$lang" == 'es' ]
then
l2=0.001
NElen=7
fi
task=$lang"_"$curr_date"_"$set
echo "set=$set task=$task begin=$beginIndex end=$endIndex"
mkdir experiments/sentiment/model/semimarkov_nonlatent/Twitter_$lang/$task
logfile=$task".log"
echo "tail -f "$logfile > check.sh
chmod +x check.sh
java -cp bin -Xmx16g com.nlp.targetedsentiment.util.TargetSentimentGlobal semimarkov_nonlatent 1000 $l2 $beginIndex $endIndex $lang weightnotpush $task $NElen > $logfile 2>&1
python scripts/sentiment.py $beginIndex $endIndex semimarkov_nonlatent $lang $task N >> $logfile
date >> email_succ.txt
#sendmail [email protected] < email_succ.txt