diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2014-04-25 18:21:11 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2014-04-25 18:21:11 +0200 |
commit | 5f04f17907ce37a8e8dd6cff9cb6dc026b30b8f6 (patch) | |
tree | efebc9d2ff2a6cda1bb0c1da60bcbfc9b001ad3d /example | |
parent | 4e3260df76571ee3be531a6d7c0c1b5c93a056a4 (diff) |
better readme, example and code
Diffstat (limited to 'example')
-rw-r--r-- | example/cfg.rb | 7 | ||||
-rwxr-xr-x | example/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 \ |