summaryrefslogtreecommitdiff
path: root/example/run
blob: 4440634569008aaf0354c67d6f319de23a083e4c (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/zsh -x

CDEC_BIN=~/src/cdec-dtrain/decoder/cdec
CDEC_MINIMAL_BIN=~/src/cdec-dtrain/decoder/minimal_decoder
WEAVER_PROTOTYPE_BIN=../prototype/weaver.rb
FAST_WEAVER_BIN=../fast_weaver

for example in \
  3    \
; do

mkdir -p $example/output

$CDEC_BIN -c cdec/default.ini -w weights/weights -n \
 -g $example/grammar < $example/in \
   > $example/output/cdec.nothing.out \
   2>$example/output/cdec.nothing.err
$CDEC_BIN -c cdec/default.ini -w weights/weights \
 -g $example/grammar < $example/in \
   > $example/output/cdec.glue.out \
   2>$example/output/cdec.glue.err
$CDEC_BIN -c cdec/passthrough.ini -w weights/weights -n \
 -g $example/grammar < $example/in \
   > $example/output/cdec.passthrough.out \
   2>$example/output/cdec.passthrough.err
$CDEC_BIN -c cdec/default.ini -w weights/weights \
 -g $example/grammar < $example/in \
   > $example/output/cdec.default.out \
   2>$example/output/cdec.default.err
$CDEC_BIN -c cdec/default.ini -w weights/weights.0 \
  -g $example/grammar < $example/in \
    > $example/output/cdec.default-0.out \
    2>$example/output/cdec.default-0.err

$CDEC_MINIMAL_BIN $example/cdec.json.gz weights/weights \
  > $example/output/cdec-minimal.out \
  2>$example/output/cdec-minimal.err
$CDEC_MINIMAL_BIN $example/cdec.json.gz weights/weights.0 \
  > $example/output/cdec-minimal.0.out \
  2>$example/output/cdec-minimal.0.err

$FAST_WEAVER_BIN $example/weaver.pak \
  > $example/output/fast_weaver.out \
  2>$example/output/fast_weaver.err

$WEAVER_PROTOTYPE_BIN -w weights/weights -g $example/grammar -i $example/in \
 > $example/output/weaver-prototype.nothing.out \
 2>$example/output/weaver-prototype.nothing.err
$WEAVER_PROTOTYPE_BIN -w weights/weights -g $example/grammar -i $example/in -l \
 > $example/output/weaver-prototype.glue.out \
 2>$example/output/weaver-prototype.glue.err
$WEAVER_PROTOTYPE_BIN -w weights/weights -g $example/grammar -i $example/in -p \
 > $example/output/weaver-prototype.passthrough.out \
 2>$example/output/weaver-prototype.passthrough.err
$WEAVER_PROTOTYPE_BIN -w weights/weights -g $example/grammar -i $example/in \
 -l -p \
   > $example/output/weaver-prototype.default.out \
   2>$example/output/weaver-prototype.default.err
$WEAVER_PROTOTYPE_BIN -w weights/weights.0 -g $example/grammar -i $example/in \
  -l -p \
    > $example/output/weaver-prototype.default-0.out \
    2>$example/output/weaver-prototype.default-0.err

done