stanfordnlp / sempre-plot

Semantic Parser with Execution
Other
28 stars 12 forks source link

process schema #18

Closed sidaw closed 7 years ago

sidaw commented 7 years ago

@ppasupat add to VegaJsonContextValue

On sempre query, the client will also send an object called schema, which looks like this:

{
  Acceleration : {name: "Acceleration", type: "number", source: true},
  Cylinders: {name: "Cylinders", type: "integer", source: true},
  Origin:{name: "Origin", type: "string", source: true}
}
ppasupat commented 7 years ago

The client does not seem to send the schema right now. It just sends the field names. Should I also modify the client to send such a schema as well?

sidaw commented 7 years ago

as far as i can tell, the schema is already sent in the interactive setting. if not, i'd appreciate any tips or PR. for the overnight setting, feel free to add the schema -- maybe by adding the DataTable to overnight.

ppasupat commented 7 years ago

19