diff options
Diffstat (limited to 'scripts/geoquery/semparse.rb')
-rwxr-xr-x | scripts/geoquery/semparse.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/geoquery/semparse.rb b/scripts/geoquery/semparse.rb new file mode 100755 index 0000000..ebcbfbe --- /dev/null +++ b/scripts/geoquery/semparse.rb @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby + +require 'nlp_ruby' + + +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 + |