Skip to content

pcyin/NL2code

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 5, 2017 16:30
nn
December 28, 2016 14:06
April 20, 2017 13:33
June 10, 2017 17:18
February 5, 2017 16:30
April 20, 2017 13:50
February 5, 2017 16:30
December 27, 2016 19:36
January 3, 2017 16:57
April 20, 2017 13:50
January 3, 2017 02:20
November 25, 2016 21:52
February 5, 2017 16:30
November 25, 2016 21:52
October 26, 2016 15:24
April 21, 2017 11:31
April 21, 2017 11:31
November 11, 2016 22:27

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}
}

About

A syntactic neural model for parsing natural language to executable code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published