NL2code

by pcyin

pcyin /NL2code

A syntactic neural model for parsing natural language to executable code

139 Stars 24 Forks Last release: Not found 91 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

NL2code

A syntactic neural model for parsing natural language to executable code paper.

Dataset and Trained Models

Get serialized datasets and trained models from here. Put

models/
and
data/
folders under the root directory of the project.

Usage

To train new model

. train.sh [hs|django]

To use trained model for decoding test sets

. run_trained_model.sh [hs|django]

Dependencies

  • Theano
  • vprof
  • NLTK 3.2.1
  • astor 0.6

Reference

@inproceedings{yin17acl,
    title = {A Syntactic Neural Model for General-Purpose Code Generation},
    author = {Pengcheng Yin and Graham Neubig},
    booktitle = {The 55th Annual Meeting of the Association for Computational Linguistics (ACL)},
    address = {Vancouver, Canada},
    month = {July},
    url = {https://arxiv.org/abs/1704.01696},
    year = {2017}
}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.