-
Notifications
You must be signed in to change notification settings - Fork 2
/
runTestScoringOnly.sh
executable file
·47 lines (42 loc) · 1.56 KB
/
runTestScoringOnly.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
44
45
46
47
#!/bin/bash
# reg: $1
#************************************ PREPROCESSING *******************************************#
suffix=$1;
infix=test
source "$(dirname `readlink -f ${0}`)/training/config.sh"
pwd
training_dir_old=${datadir}/naacl2012_splits/from_dipanjan/another_set
#processedfile=${training_dir_old}/cv.${infix}.sentences.all.lemma.tags
processedfile_new=${datadir}/naacl2012_splits/mstparsed_by_me/cv.${infix}.sentences.all.lemma.tags
processedfile=$processedfile_new
#tokenizedfile=${training_dir_old}/cv.${infix}.sentences.tokenized
tokenizedfile=${datadir}/naacl2012_splits/mstparsed_by_me/cv.${infix}.sentences.tokenized
fefile=${training_dir_old}/cv.${infix}.sentences.frame.elements
framesfile_new=${datadir}/naacl2012_splits/from_dipanjan/cv.${infix}.sentences.frames
relation_modified_file="${SEMAFOR_HOME}/../framenet_data/frRelationModified.xml";
frames_single_file="${SEMAFOR_HOME}/../framenet_data/framesSingleFile.xml";
echo ${CLASSPATH}
echo ${CLASSPATH_OLD}
#temp=temp_arg_`date +%s`_$1
#temp=temp_dipanjan_correct
#temp=temp_frust_fn_lus/argmodel_100
#temp=temp_fn_with_lus
#temp=temp_adadelta_baseline
temp=temp_adadelta_fn_with_lus
#temp=temp_mstparsed_by_me
mkdir ${temp}
echo "temp directory: $temp"
end=`wc -l ${tokenizedfile}`
end=`expr ${end% *}`
echo "Start:0"
echo "End:${end}"
echo "Exact Results"
perl ${SEMAFOR_HOME}/scripts/scoring/fnSemScore_modified.pl -c ${temp} \
-l \
-n \
-f \
-e \
-v \
${frames_single_file} ${relation_modified_file} \
$temp/file.gold.xml \
$temp/file.predict.xml > evaluation/results/argid_${infix}_ll_beam_1_exact_verbose_${suffix}