summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2014-03-03 19:17:40 +0100
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2014-03-03 19:17:40 +0100
commit38bbcbd52cfd6dd6d7d20148e7fa0a760af90f0a (patch)
treedce78bdba295a47d38a21539ba227df4b725f425 /scripts
parentce1df5c58fe812334ace1299f2df6e1a371b55cb (diff)
cfg
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/geoquery/query.rb3
-rwxr-xr-xscripts/geoquery/semparse.rb3
2 files changed, 2 insertions, 4 deletions
diff --git a/scripts/geoquery/query.rb b/scripts/geoquery/query.rb
index 9cec355..25cded5 100755
--- a/scripts/geoquery/query.rb
+++ b/scripts/geoquery/query.rb
@@ -1,10 +1,9 @@
#!/usr/bin/env ruby
require 'nlp_ruby'
+require_relative '../../cfg.rb'
-EVAL_PL='/workspace/grounded/wasp-1.0/data/geo-funql/eval/eval.pl'
-
while line = STDIN.gets
puts `echo "execute_funql_query(#{line}, X)." | swipl -s #{EVAL_PL} 2>&1 | grep "X ="`.gsub('X = ','').strip
end
diff --git a/scripts/geoquery/semparse.rb b/scripts/geoquery/semparse.rb
index ebcbfbe..9858ade 100755
--- a/scripts/geoquery/semparse.rb
+++ b/scripts/geoquery/semparse.rb
@@ -1,10 +1,9 @@
#!/usr/bin/env ruby
require 'nlp_ruby'
+require_relative '../../cfg.rb'
-SMT_SEMPARSE = 'python /workspace/grounded/smt-semparse-cp/decode_sentence.py /workspace/grounded/smt-semparse-cp/working/full_dataset'
-
while line = STDIN.gets
puts `#{SMT_SEMPARSE} "#{line}"`
end