Inviting an author to review:
Find an author and click ‘Invite to review selected article’ near their name.
Search for authorsSearch for similar articles
25
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Mapping Language to Code in Programmatic Context

      Preprint
      , , ,

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          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.

          Related collections

          Most cited references17

          • Record: found
          • Abstract: not found
          • Conference Proceedings: not found

          Neural Machine Translation of Rare Words with Subword Units

            Bookmark
            • Record: found
            • Abstract: not found
            • Article: not found

            Learning Dependency-Based Compositional Semantics

              Bookmark
              • Record: found
              • Abstract: not found
              • Conference Proceedings: not found

              Neural Semantic Parsing with Type Constraints for Semi-Structured Tables

                Bookmark

                Author and article information

                Journal
                28 August 2018
                Article
                1808.09588
                fee0e0a0-6fd0-451a-b37b-92e3cb8177b8

                http://arxiv.org/licenses/nonexclusive-distrib/1.0/

                History
                Custom metadata
                Accepted at EMNLP 2018
                cs.CL

                Theoretical computer science
                Theoretical computer science

                Comments

                Comment on this article