GithubHelp home page GithubHelp logo

tisp's Introduction

Type-driven Incremental Semantic Parser

License: MIT

This repository contains an implementation of the semantic parser in paper Type-driven Incremental Semantic Parsing with Polymorphism.

Required Dependencies

  1. PyPy: due to the heavy computation required by this parser, it is strongly recommended to use PyPy instead of CPython. This program is tested with PyPy 5.4.0.
  2. Python packages including:
  3. python-gflags: used for command-line arguments parsing.
  4. pyparsing: used for parsing lambda expressions in the dataset.

Training

To train on the provided sample data set and saving the model, you can run:

trainer.py --outputprefix exps/demotrain

where exps is a directory storing all training models, and demotrain is the prefix of the saved model file. The trainer will dump its weights to a standalone weight file (a pickle file) at each training iteration.

Evaluating

To evaluate the trained model on development set and testing set, you can run:

trainer.py --eval exps/demotrain.9.pickle

where exps/demotrain.9.pickle is a weight file saved in the previous training.

tisp's People

Contributors

kaayy avatar

Stargazers

Nathan BeDell avatar  avatar Edgar Gonzàlez i Pellicer avatar Bailin avatar Yiran Wang avatar Pengcheng YIN avatar Vijay Saraswat avatar

Watchers

 avatar James Cloos avatar

tisp's Issues

Full data-sets?

Would much appreciate the data on which results were reported in the paper (geoquery, jobs, atis), in the form in which they were used by the system. (That helps make clear what kind of pre-processing was done.) Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.