首页> 外文会议>2016 IEEE/ACM 38th IEEE International Conference on Software Engineering Companion >Characterizing API Elements in Software Documentation with Vector Representation
【24h】

Characterizing API Elements in Software Documentation with Vector Representation

机译:使用矢量表示法表征软件文档中的API元素

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

摘要

Software documentation is a very crucial resource for developers in understanding various aspects of software development process. A unique nature of such documentation is the presence of code elements embedded in natural-language texts that explain their purposes, usages and mutual relations with others. Some recent work has explored that nature for different purposes such as discovering code elements in documents and generating summaries for classes and methods with context. However, none of the existing approaches is capable of further capturing semantic relations of code elements with related words and with other relevant APIs at the same time. In this paper, by considering an embedded API element as a word, we characterize this API via a low-dimensional continuous vector that encodes information on many contexts in which that API appears as possible. Our empirical study shows that the vector representation learned from a large corpus of documentation is capable of capturing semantic relations between API elements and words. That is, APIs with similar functionalities have similar embeddings; and APIs and related words are close to each other in the vector space without explicit textual matching. Our experiment also suggests that the proposed representation for embedded API elements has a promising application in API code search.
机译:对于理解软件开发过程各个方面的开发人员来说,软件文档是非常重要的资源。这种文档的独特性质是自然语言文本中嵌入了代码元素,这些代码元素解释了它们的目的,用法以及与他人的相互关系。最近的一些工作已经探索了该性质用于不同目的,例如发现文档中的代码元素以及为具有上下文的类和方法生成摘要。然而,现有方法中没有一个能够同时捕获具有相关词和其他相关API的代码元素的语义关系。在本文中,通过将嵌入式API元素视为一个单词,我们通过一个低维连续向量对API进行了表征,该向量在可能出现该API的许多上下文中对信息进行编码。我们的经验研究表明,从大量文档中学习到的向量表示形式能够捕获API元素和单词之间的语义关系。也就是说,具有相似功能的API具有相似的嵌入。 API和相关字词在向量空间中彼此接近,而没有明确的文本匹配。我们的实验还表明,嵌入式API元素的建议表示形式在API代码搜索中具有广阔的应用前景。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号