Mapping Language to Code in Programmatic Context

By Srini Iyer, Ioannis Konstas, Alvin Cheung, Luke S. Zettlemoyer. 2018

181 citations recorded by the source corpus.

Source code is rarely written in isolation. It depends significantly on the programmatic context, such as the class that the code would reside in. To study this phenomenon, we introduce the task of generating class member functions given English documentation and the programmatic context provided by the rest of the class. This task is challenging because the desired code can vary greatly depending on the functionality the class provides (e.g., a sort function may or may not be available when we are asked to “return the smallest element” in a particular member variable list). We introduce CONCODE, a new large dataset with over 100,000 examples consisting of Java classes from online code repositories, and develop a new encoder-decoder architecture that models the interaction between the method documentation and the class environment. We also present a detailed error analysis suggesting that there is significant room for future work on this task.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing, Code Generation & Program Synthesis

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. Nan Duan
  2. Daya Guo
  3. Ming Zhou
  4. Jianfeng Gao
  5. Duyu Tang
  6. Shujie Liu
  7. Mohit Bansal
  8. Jian Yin

In Information Systems

  1. Nan Duan
  2. Daya Guo
  3. Neel Sundaresan
  4. Alexey Svyatkovskiy
  5. Jian Yin
  6. Colin B. Clement
  7. Baishakhi Ray
  8. Saikat Chakraborty

In Natural Language Processing

  1. Nan Duan
  2. Neel Sundaresan
  3. Ming Zhou
  4. Alexey Svyatkovskiy
  5. Shao Kun Deng
  6. Michele Tufano
  7. Shujie Liu
  8. Daya Guo

In Code Generation & Program Synthesis

  1. Wasi Uddin Ahmad
  2. Baishakhi Ray
  3. Saikat Chakraborty
  4. Kai-Wei Chang
  5. Ge Li
  6. Nan Duan
  7. Daya Guo
  8. Jian Yin

Citations in the corpus