summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-12 01:18:45 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-12 01:18:45 +0000
commitaa306c4142789fc2462dc65d94321e026b722ed8 (patch)
treea434670c9b21ba9235f6dc6dc4c0f5e7f1f3cc14
parentd4b52e01c1ad69ba69931be5af2300a4e63039a0 (diff)
scripts
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@531 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xreport/pdf/subset.sh49
-rwxr-xr-xreport/prune_results/do.time.sh8
2 files changed, 57 insertions, 0 deletions
diff --git a/report/pdf/subset.sh b/report/pdf/subset.sh
new file mode 100755
index 00000000..5e41b3f4
--- /dev/null
+++ b/report/pdf/subset.sh
@@ -0,0 +1,49 @@
+ani() {
+ if [ "$useani" ] ; then
+ echo "$@"
+ else
+ if [ "$2" ] ;then
+ echo "$2"
+ else
+ perl -e '$_=shift;s/.*-//;print' -- "$@"
+ fi
+ fi
+}
+
+graph=compare.1stpass.tune.pdf
+
+pdftk "second session.pdf" cat 209-211 213 output conclusion-subset.pdf
+
+for useani in '' 1; do
+ if [ "$useani" ] ; then
+ aname="-animate"
+ else
+ aname=
+ fi
+ pdftk "first session.pdf" cat 1 7 8 `ani 10-18` 19-25 26-37 \
+ 52-65 66-71 73-76 `ani 77-80` 85-88 \
+ `ani 89-101` 102-104 `ani 107-110` 111-118 127-132 \
+ 141-144 146-148 \
+ 157-159 162 `ani 163-165` 166-168 169 171 `ani 173-178` 179 180-190 192-195 \
+ output first-subset$aname.pdf
+
+ pdftk "second session.pdf" cat 70 71 76 79 `ani 82-84` 85 \
+ 96 97 98 99 101 \
+ output second-subset$aname.pdf
+
+ pdftk C="CLSPclosing.pdf" G=$graph cat 10-11 14 `ani 16-33` 34 `ani 35-44` 45 46 47 48 49 52 `ani 53-58` 59-62 \
+ 68 69-74 \
+ G \
+ 78 \
+ 80 `ani 81-82` 85 `ani 87-90` 91-102 \
+ output parsing-subset$aname.pdf
+
+ pdftk first-subset$aname.pdf second-subset$aname.pdf parsing-subset$aname.pdf conclusion-subset.pdf \
+ cat output subset$aname.pdf
+ pdftk ws10-graehl.pdf subset$aname.pdf cat output all$aname.pdf
+
+done
+
+pdftk 'first session.pdf' cat 1-149 output first.pdf
+pdftk 'first.pdf' 'second session.pdf' ../ws10-graehl.pdf cat output all-uncut.pdf
+
diff --git a/report/prune_results/do.time.sh b/report/prune_results/do.time.sh
new file mode 100755
index 00000000..f502881a
--- /dev/null
+++ b/report/prune_results/do.time.sh
@@ -0,0 +1,8 @@
+title="In multipass (TM -> TM+3gram), tuning for 1st pass -> BLEU (y) lost to pruning (x)." \
+ n4="tuned_unigram" \
+ n2="2ndpass_weights_without_lm" \
+ n3="tuned_without_lm" \
+ xlbl="per-sentence LM rescoring time" \
+ obase=time.1stpass.tune \
+ ymin=0 ymax=21 \
+ ./graph.sh time.2pass- hdt hdt0 hdt1