summaryrefslogtreecommitdiff
path: root/cdec/mert.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cdec/mert.sh')
-rwxr-xr-xcdec/mert.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/cdec/mert.sh b/cdec/mert.sh
new file mode 100755
index 0000000..3af9e65
--- /dev/null
+++ b/cdec/mert.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+CDEC=/path/to/cdec
+DEVSET=/path/to/pasted/file
+
+$CDEC/training/dpmert/dpmert.pl \
+ --devset $DEVSET \
+ --config $(pwd)/cdec.ini \
+ --weights $(pwd)/weights.init \
+ --metric IBM_BLEU \
+ --iterations 15 \
+ --random-directions 15 \
+ --output-dir $(pwd)/work \
+ --jobs 2 \
+ &> mert.out
+
+gzip mert.out
+