From aa306c4142789fc2462dc65d94321e026b722ed8 Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 12 Aug 2010 01:18:45 +0000 Subject: scripts git-svn-id: https://ws10smt.googlecode.com/svn/trunk@531 ec762483-ff6d-05da-a07a-a48fb63a330f --- report/pdf/subset.sh | 49 +++++++++++++++++++++++++++++++++++++++++ report/prune_results/do.time.sh | 8 +++++++ 2 files changed, 57 insertions(+) create mode 100755 report/pdf/subset.sh create mode 100755 report/prune_results/do.time.sh (limited to 'report') 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 -- cgit v1.2.3