diff options
author | pks <p@simianer.de> | 2015-01-26 09:34:32 +0100 |
---|---|---|
committer | pks <p@simianer.de> | 2015-01-26 09:34:32 +0100 |
commit | 0be900d2e33b4a82994c1d033251fd77b70a4d92 (patch) | |
tree | e30585288c5397a1924c312109246881ede37f01 /example_geoquery/run.sh | |
parent | 25fa34e5c4275cdd4a4ca735c12b4b22f7ed7c0e (diff) | |
parent | 79a74fea89be46fc35c55e331d41cf8aeb017771 (diff) |
Merge pull request #1 from carhaas/master
Free917
Diffstat (limited to 'example_geoquery/run.sh')
-rw-r--r-- | example_geoquery/run.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/example_geoquery/run.sh b/example_geoquery/run.sh new file mode 100644 index 0000000..249c859 --- /dev/null +++ b/example_geoquery/run.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# memcached has to be running! +#memcached -p 31337 + +CDEC=/toolbox/cdec + +../rebol.rb \ + -k 100 \ + -i $(pwd)/data.in \ + -r $(pwd)/data.en \ + -g $(pwd)/data.gold \ + -h $(pwd)/data.funql \ + -w $(pwd)/../data/weights.init \ + -t $(pwd)/../data/stopwords.en \ + -c $(pwd)/cdec.ini \ + -b $(pwd)/cfg.rb \ + -o output-weights \ + -l \ + -e 0.01 \ + -j 1 \ + -u geoquery \ + -v rebol 2>output.stderr > output.stdout + +# translate test +$CDEC/decoder/cdec \ + -c cdec.ini \ + -w output-weights 2>/dev/null \ + < data.in \ + | ../scripts/geoquery/semparse.rb $(pwd)/cfg.rb \ + | ../scripts/geoquery/query.rb $(pwd)/cfg.rb > output-answers + +# evaluate result +../scripts/geoquery/eval.rb \ + data.gold < output-answers > output-eval + |