A Parallel Corpus of Python Functions and Documentation Strings for Automated Code Documentation and Code Generation

By Antonio Valerio Miceli Barone, Rico Sennrich. 2017

179 citations recorded by the source corpus.

Automated documentation of programming source code and automated code generation from natural language are challenging tasks of both practical and scientific interest. Progress in these areas has been limited by the low availability of parallel corpora of code and natural language descriptions, which tend to be small and constrained to specific domains. In this work we introduce a large and diverse parallel corpus of a hundred thousands Python functions with their documentation strings (“docstrings”) generated by scraping open source repositories on GitHub. We describe baseline results for the code documentation and code generation tasks obtained by neural machine translation. We also experiment with data augmentation techniques to further increase the amount of training data. We release our datasets and processing scripts in order to stimulate research in these areas.

Subfields: Artificial Intelligence, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Graham Neubig
  3. Mohit Bansal
  4. Jianfeng Gao
  5. Percy Liang
  6. Quoc V. Le
  7. Caiming Xiong
  8. Yejin Choi

In Natural Language Processing

  1. Graham Neubig
  2. Luke S. Zettlemoyer
  3. Mohit Bansal
  4. Percy Liang
  5. Nan Duan
  6. Caiming Xiong
  7. Jianfeng Gao
  8. Richard Socher

Citations in the corpus