summaryrefslogtreecommitdiff
path: root/cdec/mira.sh
blob: 4bb4f789273a89bd57313774cb804c7c64b4bc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

CDEC=/path/tocdec
DEVSET=/path/to/pasted/file

$CDEC/training/mira/mira.py \
  --devset $DEVSET  \
  --config $(pwd)/cdec.ini \
  --weights $(pwd)/weights.init \
  --jobs 2 \
  --output-dir $(pwd)/work \
  --metric ibm_bleu \
  --max-iterations 20 \
  --metric-scale 1 \
  -k 500 \
  --step-size 0.001  \
  --optimizer 2 \
  --hope 1 \
  --fear 1 \

gzip mira.out