stanford-oval / thingtalk

The Programming Language of Virtual Assistants
Apache License 2.0
84 stars 21 forks source link

Optimization for boolean questions #367

Open sileix opened 3 years ago

sileix commented 3 years ago

the booleanExpression in the boolean questions is currently not optimized. E..g, in the case when it's statically true/false, we could simply use [true]/[false] to avoid the computation, or even avoid running the query entirely.

gcampax commented 3 years ago

Yeah you'll want to add the filter optimization right away because it also normalizes the filters and sorts it by parameter name, which you need for training.