summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/cfg.rb7
-rwxr-xr-xexample/run.sh (renamed from example/example.sh)10
2 files changed, 10 insertions, 7 deletions
diff --git a/example/cfg.rb b/example/cfg.rb
index fbf8e7f..94fef2e 100644
--- a/example/cfg.rb
+++ b/example/cfg.rb
@@ -1,7 +1,8 @@
-SMT_SEMPARSE = 'python /workspace/grounded/smt-semparse-cp/decode_sentence.py /workspace/grounded/smt-semparse-cp/working/full_dataset'
-EVAL_PL = '/workspace/grounded/wasp-1.0/data/geo-funql/eval/eval.pl'
+_PATH = '/workspace/grounded/test'
+SMT_SEMPARSE = "python #{_PATH}/smt-semparse/decode_sentence.py /workspace/grounded/test/smt-semparse/work/full_dataset"
+EVAL_PL = "#{_PATH}/wasp-1.0/data/geo-funql/eval/eval.pl"
ACCEPT_ZOMBIES = true
TIMEOUT = 60
-CDEC_BIN = '/toolbox/cdec-dtrain/decoder/cdec'
+CDEC_BIN = '/toolbox/cdec/decoder/cdec'
$cache = Memcached.new('localhost:31337')
diff --git a/example/example.sh b/example/run.sh
index b359dfd..fba3931 100755
--- a/example/example.sh
+++ b/example/run.sh
@@ -1,8 +1,10 @@
#!/bin/bash
-# memcached has to be running! `memcached -p 31337`
+# memcached has to be running!
+#memcached -p 31337
+
+CDEC=/toolbox/cdec
-# run rebol with rampion variant for 1 epoch over 10 examples (data.*)
../rebol.rb \
-k 100 \
-i $(pwd)/data.in \
@@ -17,10 +19,10 @@
-l \
-e 0.01 \
-j 1 \
- -v rampion 2>output.stderr > output.stdout
+ -v rebol 2>output.stderr > output.stdout
# translate test
-/toolbox/cdec-dtrain/decoder/cdec \
+$CDEC/decoder/cdec \
-c cdec.ini \
-w output-weights 2>/dev/null \
< data.in \