user interface for plotting with semantic parsing
-
Clone the repository
-
install yarn and run
yarn install
-
start client that queries the local server:
yarn start:local
-
start client that queries the public server
yarn start
-
push a version to the public url:
yarn run build && yarn run deploy
Note that if you run locally on one machine,
it will not work to visit that machine from any other machine.
To make this work, you can use REACT_APP_SEMPRE_SERVER=http://<servername>:8405 yarn start
-
send turking parameters through url parameters:
BASE_URL/?uid=workerId&sid=assignmentId
Make sure the parameters are AFTER the # in the url so it appears in the very end. like http://localhost:3000/#/build?uid=blah -
this should be logged in the server at
SEMPRE_ROOT/plot-out/query.jsonl
by default check that the parameters are loaded correctly!
-
data for vegalite and example specifications are in
public
-
public/spec/vega-lite/index.json
together withsrc/helper/vega-utils.responsesFromExamples
determines which examples get displayed in the beginning. -
To download examples
svn export https://github.com/vega/vega-lite.git/trunk/examples/specs public/spec/vega-lite
-
To get data use
svn export https://github.com/vega/vega-datasets.git/tags/v1.19.0/data/ public/data
Label JSON can be used to manually label some data, the sempre readable example will be printed to the javascript console.