首页> 外文会议>2017 IEEE/ACM 39th International Conference on Software Engineering Companion >Statistical Translation of English Texts to API Code Templates
【24h】

Statistical Translation of English Texts to API Code Templates

机译:英文文本到API代码模板的统计翻译

获取原文
获取原文并翻译 | 示例

摘要

We develop T2API, a context-sensitive, graph-based statistical translation approach that takes as input an English description of a programming task and synthesizes the corresponding API code template for the task. We train T2API to statistically learn the alignments between English and APIs and determine the relevant API elements. The training is done on StackOverflow, which is a bilingual corpus on which developers discuss programming problems in two types of language: English and programming language. T2API considers both the context of the words in the input query and the context of API elements that often go together in the corpus. The derived API elements with their relevance scores are assembled into an API usage by GRASYN, our novel graph-based API synthesis algorithm that generates a graph representing an API usage from a large code corpus. Importantly, it is capable of generating new API usages from previously seen sub-usages.
机译:我们开发了T2API,这是一种基于上下文的,基于图的统计翻译方法,该方法将编程任务的英文描述作为输入,并为任务综合相应的API代码模板。我们训练T2API来统计学习英语和API之间的对齐方式并确定相关的API元素。培训是在StackOverflow上完成的,StackOverflow是双语的语料库,开发人员可使用该语料库以两种语言讨论编程问题:英语和编程语言。 T2API会同时考虑输入查询中单词的上下文和语料库中经常一起使用的API元素的上下文。派生的API元素及其相关性得分由GRASYN组装成API使用情况,GRASYN是我们新颖的基于图的API合成算法,可从大型代码库生成代表API使用情况的图。重要的是,它能够从以前看到的子用法中生成新的API用法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号