diff options
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 + |