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 | |
parent | 25fa34e5c4275cdd4a4ca735c12b4b22f7ed7c0e (diff) | |
parent | 79a74fea89be46fc35c55e331d41cf8aeb017771 (diff) |
Merge pull request #1 from carhaas/master
Free917
Diffstat (limited to 'example')
-rw-r--r-- | example/cdec.ini | 9 | ||||
-rw-r--r-- | example/cfg.rb | 8 | ||||
-rw-r--r-- | example/data.en | 10 | ||||
-rw-r--r-- | example/data.funql | 10 | ||||
-rw-r--r-- | example/data.gold | 10 | ||||
-rw-r--r-- | example/data.in | 10 | ||||
-rw-r--r-- | example/data.prolog | 10 | ||||
-rw-r--r-- | example/grammar/grammar.15.gz | bin | 17487 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.16.gz | bin | 17489 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.25.gz | bin | 7307 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.26.gz | bin | 25672 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.29.gz | bin | 22610 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.3.gz | bin | 4659 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.33.gz | bin | 7612 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.34.gz | bin | 7601 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.37.gz | bin | 11126 -> 0 bytes | |||
-rw-r--r-- | example/grammar/grammar.6.gz | bin | 43680 -> 0 bytes | |||
-rwxr-xr-x | example/run.sh | 35 |
18 files changed, 0 insertions, 102 deletions
diff --git a/example/cdec.ini b/example/cdec.ini deleted file mode 100644 index b9b564d..0000000 --- a/example/cdec.ini +++ /dev/null @@ -1,9 +0,0 @@ -formalism=scfg -intersection_strategy=cube_pruning -cubepruning_pop_limit=30 -scfg_max_span_limit=15 -feature_function=WordPenalty -feature_function=RuleIdentityFeatures -feature_function=RuleSourceBigramFeatures -feature_function=RuleTargetBigramFeatures -feature_function=RuleShape diff --git a/example/cfg.rb b/example/cfg.rb deleted file mode 100644 index 94fef2e..0000000 --- a/example/cfg.rb +++ /dev/null @@ -1,8 +0,0 @@ -_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/decoder/cdec' -$cache = Memcached.new('localhost:31337') - diff --git a/example/data.en b/example/data.en deleted file mode 100644 index 7d7740e..0000000 --- a/example/data.en +++ /dev/null @@ -1,10 +0,0 @@ -name all the rivers in colorado -count the states which have elevations lower than what alabama has -give me the number of rivers in california -give me the states that border utah -how high is mount mckinley -how high is the highest point in america -how high is the highest point of alabama -how large is alaska -how large is texas -how long is the colorado river diff --git a/example/data.funql b/example/data.funql deleted file mode 100644 index 6843394..0000000 --- a/example/data.funql +++ /dev/null @@ -1,10 +0,0 @@ -answer(river(loc_2(stateid('colorado')))) -answer(count(state(low_point_2(lower_2(low_point_1(stateid('alabama'))))))) -answer(count(river(loc_2(stateid('california'))))) -answer(state(next_to_2(stateid('utah')))) -answer(elevation_1(placeid('mount mckinley'))) -answer(elevation_1(highest(place(loc_2(countryid('usa')))))) -answer(elevation_1(highest(place(loc_2(stateid('alabama')))))) -answer(size(stateid('alaska'))) -answer(size(stateid('texas'))) -answer(len(river(riverid('colorado')))) diff --git a/example/data.gold b/example/data.gold deleted file mode 100644 index aed50af..0000000 --- a/example/data.gold +++ /dev/null @@ -1,10 +0,0 @@ -[riverid(arkansas),riverid(canadian),riverid(colorado),riverid(green),riverid('north platte'),riverid(republican),riverid('rio grande'),riverid('san juan'),riverid('smoky hill'),riverid('south platte')] -[2] -[1] -[stateid(arizona),stateid(colorado),stateid(idaho),stateid(nevada),stateid('new mexico'),stateid(wyoming)] -[6194] -[6194] -[734] -[591000.0] -[266807.0] -[2333] diff --git a/example/data.in b/example/data.in deleted file mode 100644 index e678525..0000000 --- a/example/data.in +++ /dev/null @@ -1,10 +0,0 @@ -<seg grammar="grammar/grammar.3.gz" id="3"> nenne alle flüsse in colorado </seg> -<seg grammar="grammar/grammar.6.gz" id="6"> zähle die staaten , welche erhebungen haben , die niedriger liegen als jene in alabama </seg> -<seg grammar="grammar/grammar.15.gz" id="15"> nenne mir die anzahl der flüsse in california </seg> -<seg grammar="grammar/grammar.16.gz" id="16"> nenne mir die staaten , welche an utah grenzen </seg> -<seg grammar="grammar/grammar.25.gz" id="25"> wie hoch ist mount mckinley </seg> -<seg grammar="grammar/grammar.26.gz" id="26"> wie hoch liegt der höchste punkt in amerika </seg> -<seg grammar="grammar/grammar.29.gz" id="29"> wie hoch liegt der höchste punkt in alabama </seg> -<seg grammar="grammar/grammar.33.gz" id="33"> wie groß ist alaska </seg> -<seg grammar="grammar/grammar.34.gz" id="34"> wie groß ist texas </seg> -<seg grammar="grammar/grammar.37.gz" id="37"> wie lang ist der colorado fluss </seg> diff --git a/example/data.prolog b/example/data.prolog deleted file mode 100644 index 6843394..0000000 --- a/example/data.prolog +++ /dev/null @@ -1,10 +0,0 @@ -answer(river(loc_2(stateid('colorado')))) -answer(count(state(low_point_2(lower_2(low_point_1(stateid('alabama'))))))) -answer(count(river(loc_2(stateid('california'))))) -answer(state(next_to_2(stateid('utah')))) -answer(elevation_1(placeid('mount mckinley'))) -answer(elevation_1(highest(place(loc_2(countryid('usa')))))) -answer(elevation_1(highest(place(loc_2(stateid('alabama')))))) -answer(size(stateid('alaska'))) -answer(size(stateid('texas'))) -answer(len(river(riverid('colorado')))) diff --git a/example/grammar/grammar.15.gz b/example/grammar/grammar.15.gz Binary files differdeleted file mode 100644 index 416152f..0000000 --- a/example/grammar/grammar.15.gz +++ /dev/null diff --git a/example/grammar/grammar.16.gz b/example/grammar/grammar.16.gz Binary files differdeleted file mode 100644 index 19189e6..0000000 --- a/example/grammar/grammar.16.gz +++ /dev/null diff --git a/example/grammar/grammar.25.gz b/example/grammar/grammar.25.gz Binary files differdeleted file mode 100644 index a441190..0000000 --- a/example/grammar/grammar.25.gz +++ /dev/null diff --git a/example/grammar/grammar.26.gz b/example/grammar/grammar.26.gz Binary files differdeleted file mode 100644 index 753e491..0000000 --- a/example/grammar/grammar.26.gz +++ /dev/null diff --git a/example/grammar/grammar.29.gz b/example/grammar/grammar.29.gz Binary files differdeleted file mode 100644 index 56c91cd..0000000 --- a/example/grammar/grammar.29.gz +++ /dev/null diff --git a/example/grammar/grammar.3.gz b/example/grammar/grammar.3.gz Binary files differdeleted file mode 100644 index 6e03a98..0000000 --- a/example/grammar/grammar.3.gz +++ /dev/null diff --git a/example/grammar/grammar.33.gz b/example/grammar/grammar.33.gz Binary files differdeleted file mode 100644 index 4f58842..0000000 --- a/example/grammar/grammar.33.gz +++ /dev/null diff --git a/example/grammar/grammar.34.gz b/example/grammar/grammar.34.gz Binary files differdeleted file mode 100644 index a700a54..0000000 --- a/example/grammar/grammar.34.gz +++ /dev/null diff --git a/example/grammar/grammar.37.gz b/example/grammar/grammar.37.gz Binary files differdeleted file mode 100644 index 32feb04..0000000 --- a/example/grammar/grammar.37.gz +++ /dev/null diff --git a/example/grammar/grammar.6.gz b/example/grammar/grammar.6.gz Binary files differdeleted file mode 100644 index bb24c62..0000000 --- a/example/grammar/grammar.6.gz +++ /dev/null diff --git a/example/run.sh b/example/run.sh deleted file mode 100755 index fba3931..0000000 --- a/example/run.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 \ - -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 - |