sempre/overnight
Sloane Sturzenegger 48d74b50b0 Documentation fixes 2016-05-21 15:07:43 -07:00
..
README.md Documentation fixes 2016-05-21 15:07:43 -07:00
basketball.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
blocks.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
calendar-canonical.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
calendar.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
calendar.turk.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
general.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
geo880-unittest.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
geo880.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
housing-unittest.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
housing.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
null.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
publications.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
recipes.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
restaurants-unittest.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
restaurants.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
socialnetwork-unittest.examples Added tables and overnight modules 2015-06-04 18:01:24 -07:00
socialnetwork.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
templates.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00
unittest.db Added tables and overnight modules 2015-06-04 18:01:24 -07:00
unittest.grammar Added tables and overnight modules 2015-06-04 18:01:24 -07:00

README.md

Files for Building a Semantic Parser Overnight

Generating canonical utterances

To generate all the canonical utterances, run:

  ./pull-dependencies freebase overnight
  ant corenlp freebase overnight
  ./run @mode=genovernight-wrapper

To generate each individual domain:

  ./run @mode=genovernight @gen=1 @domain=<domain>

Training

After generating the paraphrases via AMT and setting up the appropriate example files, we train a model.

Run the following to train with all the features:

  ./run @mode=overnight @domain=<domain>

To run with a subset of the features for ablation studies:

Baseline:

./run @mode=overnight @domain=<domain> -OvernightFeatureComputer.featureDomains match skip-bigram root lf simpleworld

No Lexical features:

./run @mode=overnight @domain=<domain> -OvernightFeatureComputer.featureDomains match ppdb skip-bigram root lf simpleworld

No PPDB features:

./run @mode=overnight @domain=<domain> -OvernightFeatureComputer.featureDomains match skip-bigram root lf alignment lexical root_lexical simpleworld

Full system:

./run @mode=overnight @domain=<domain> -OvernightFeatureComputer.featureDomains match ppdb skip-bigram root alignment lexical root_lexical lf simpleworld