Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 84 lines (63 sloc) 2.887 kB
5868357 @dmcc Initial commit.
dmcc authored
1 #! /bin/sh
2
3 # This script recompiles the reranker code, rebuilds the nbest trees
4 # and retrains and evaluates the reranker itself.
5
6 # You can change the flags below here
7
8 NBESTPARSERBASEDIR=first-stage
9 NBESTPARSERNICKNAME=ec
10
11 # NBESTPARSERBASEDIR=first-stage-Aug06
12 # NBESTPARSERNICKNAME=Aug06
13
14 FEATUREEXTRACTOR=second-stage/programs/features/extract-nfeatures
15 FEATUREEXTRACTORFLAGS="-l -c -i -s 5 -f splhnn"
16 FEATURESNICKNAME=splhnn
17
18 ESTIMATOR=second-stage/programs/wlle/cvlm
19 # ESTIMATORFLAGS="-l 1 -c0 10 -Pyx_factor 1 -debug 10 -ns -1"
20 # ESTIMATORNICKNAME=cvlm-l1c10P1
21 ESTIMATORFLAGS="-l 2 -c0 10 -Pyx_factor 1 -debug 10 -ns -1"
22 ESTIMATORNICKNAME=cvlm-l2c10P1
23
24 # ESTIMATOR=second-stage/programs/wlle/cvlm-owlqn
25 # ESTIMATORFLAGS="-l 1 -c 10 -F 1 -d 10 -n -1 -p 1 -t 1e-7"
26 # ESTIMATORNICKNAME=owlqn-l1c10P1p1t1e-7
27 # ESTIMATORFLAGS="-l 1 -c 65 -F 1 -d 10 -n -1 -p 1 -t 1e-7"
28 # ESTIMATORNICKNAME=owlqn-l1c65P1p1t1e-7
29
30 # ESTIMATOR=second-stage/programs/wlle/avper
31 # ESTIMATORFLAGS="-n 10 -d 0 -F 1 -N 10"
32 # ESTIMATORNICKNAME=avper
33
34 # ESTIMATOR=second-stage/programs/wlle/gavper
35 # ESTIMATORFLAGS="-a -n 10 -d 10 -F 1 -m 999999"
36 # ESTIMATORNICKNAME=gavper
37
38 # ESTIMATOR=second-stage/programs/wlle/gavper
39 # ESTIMATORFLAGS="-n 10 -d 10 -F 1 -m 0"
40 # ESTIMATORNICKNAME=gavper
41
42 ###############################################################################
43 #
44 # You shouldn't need to change anything below here
45 #
46 FLAGS="NBESTPARSERBASEDIR=$NBESTPARSERBASEDIR NBESTPARSERNICKNAME=$NBESTPARSERNICKNAME FEATUREEXTRACTOR=$FEATUREEXTRACTOR FEATURESNICKNAME=$FEATURESNICKNAME ESTIMATOR=$ESTIMATOR ESTIMATORNICKNAME=$ESTIMATORNICKNAME"
47
48 # echo make clean $FLAGS
49 # make clean
50
51 echo
52 echo make reranker $FLAGS
53 make reranker $FLAGS
54
55 echo
56 echo rm -fr tmp
57 rm -fr tmp
58
59 echo
60 echo make -j 8 nbesttrain $FLAGS
61 make -j 8 nbesttrain $FLAGS
62
63 # The nonfinal version trains on sections 2-19, uses sections 20-21 as dev,
64 # section 22 as test1 and 24 as test2 (this is the "Collins' split")
65 #
66 echo
67 echo make eval-reranker VERSION=nonfinal $FLAGS FEATUREEXTRACTORFLAGS="$FEATUREEXTRACTORFLAGS" ESTIMATORFLAGS="$ESTIMATORFLAGS"
68 make eval-reranker VERSION=nonfinal $FLAGS FEATUREEXTRACTORFLAGS="$FEATUREEXTRACTORFLAGS" ESTIMATORFLAGS="$ESTIMATORFLAGS"
69
70 # The final version trains on sections 2-21, uses section 24 as dev,
71 # section 22 as test1 and section 23 as test2 (this is the standard PARSEVAL split)
72 #
73 echo
74 echo make eval-reranker VERSION=final $FLAGS FEATUREEXTRACTORFLAGS="$FEATUREEXTRACTORFLAGS" ESTIMATORFLAGS="$ESTIMATORFLAGS"
75 make eval-reranker VERSION=final $FLAGS FEATUREEXTRACTORFLAGS="$FEATUREEXTRACTORFLAGS" ESTIMATORFLAGS="$ESTIMATORFLAGS"
76
77 # You may want to do this for fun
78 #
79 # echo
80 # echo make nbest-oracle $FLAGS FEATUREEXTRACTORFLAGS="$FEATUREEXTRACTORFLAGS" ESTIMATORFLAGS="$ESTIMATORFLAGS"
81 # make nbest-oracle $FLAGS FEATUREEXTRACTORFLAGS="$FEATUREEXTRACTORFLAGS" ESTIMATORFLAGS="$ESTIMATORFLAGS"
82
83
Something went wrong with that request. Please try again.