Abstract
In this work, we develop T2API, a statistical machine translationbased tool that takes a given English description of a programming task as a query, and synthesizes the API usage template for the task by learning from training data. T2API works in two steps. First, it derives the API elements relevant to the task described in the input by statistically learning from a StackOverflow corpus of text descriptions and corresponding code. To infer those API elements, it also considers the context of the words in the textual input and the context of API elements that often go together in the corpus. The inferred API elements with their relevance scores are ensembled into an API usage by our novel API usage synthesis algorithm that learns the API usages from a large code corpus via a graph-based language model. Importantly, T2API is capable of generating new API usages from smaller, previously-seen usages.
Author supplied keywords
Cite
CITATION STYLE
Nguyen, T., Rigby, P. C., Nguyen, A. T., Karanfil, M., & Nguyen, T. N. (2016). T2API: Synthesizing API code usage templates from english texts with statistical translation. In Proceedings of the ACM SIGSOFT Symposium on the Foundations of Software Engineering (Vol. 13-18-November-2016, pp. 1013–1017). Association for Computing Machinery. https://doi.org/10.1145/2950290.2983931
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.