Learning to Infer API Mappings from API Documents

计算机科学 源代码 文字嵌入 程序设计语言 编码(集合论) 语义学(计算机科学) 钥匙(锁) 应用程序编程接口 词(群论) 过程(计算) 情报检索 嵌入 人工智能 操作系统 集合(抽象数据类型) 语言学 哲学
作者
Yangyang Lu,Ge Li,Zelong Zhao,Linfeng Wen,Zhi Jin
出处
期刊:Lecture Notes in Computer Science 卷期号:: 237-248 被引量:11
标识
DOI:10.1007/978-3-319-63558-3_20
摘要

To satisfy business requirements of various platforms and devices, developers often need to migrate software code from one platform to another. During this process, a key task is to figure out API mappings between API libraries of the source and target platforms. Since doing it manually is time-consuming and error-prone, several code-based approaches have been proposed. However, they often have the issues of availability on parallel code bases and time expense caused by static or dynamic code analysis. In this paper, we present a document-based approach to infer API mappings. We first learn to understand the semantics of API names and descriptions in API documents by a word embedding model. Then we combine the word embeddings with a text similarity algorithm to compute semantic similarities between APIs of the source and target API libraries. Finally, we infer API mappings from the ranking results of API similarities. Our approach is evaluated on API documents of JavaSE and .NET. The results outperform the baseline model at precision@k by 41.51% averagely. Compared with code-based work, our approach avoids their issues and leverages easily acquired API documents to infer API mappings effectively.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
热情初瑶发布了新的文献求助10
刚刚
blackzabbath完成签到,获得积分10
1秒前
2秒前
天天快乐应助Dobrzs采纳,获得10
2秒前
HHZ完成签到,获得积分10
2秒前
4秒前
5秒前
5秒前
L123完成签到,获得积分10
6秒前
7秒前
7秒前
aa121599完成签到,获得积分10
7秒前
腼腆的修杰完成签到,获得积分10
8秒前
jingx333发布了新的文献求助10
8秒前
烟花应助九条条条采纳,获得10
8秒前
柠木发布了新的文献求助10
9秒前
美丽语蝶发布了新的文献求助10
10秒前
10秒前
10秒前
ShumanTan发布了新的文献求助10
11秒前
彭于晏应助热心果汁采纳,获得10
12秒前
blackzabbath发布了新的文献求助10
13秒前
铁墙完成签到,获得积分10
13秒前
zhangzhang发布了新的文献求助10
13秒前
哈哈发布了新的文献求助10
14秒前
杨硕完成签到,获得积分10
14秒前
无花果应助ACCEPT采纳,获得10
15秒前
Hazel发布了新的文献求助10
15秒前
Danielle完成签到,获得积分10
15秒前
香蕉梨愁发布了新的文献求助10
16秒前
丘比特应助小小酥采纳,获得10
16秒前
小柒发布了新的文献求助10
17秒前
繁花完成签到,获得积分10
18秒前
libiqing77完成签到,获得积分10
19秒前
mmr发布了新的文献求助10
19秒前
科研通AI6.4应助xdd采纳,获得10
20秒前
20秒前
20秒前
21秒前
丘比特应助yu采纳,获得10
21秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Emmy Noether's Wonderful Theorem 1200
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
基于非线性光纤环形镜的全保偏锁模激光器研究-上海科技大学 800
Signals, Systems, and Signal Processing 610
Wade & Forsyth's Administrative Law 550
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6410200
求助须知:如何正确求助?哪些是违规求助? 8229472
关于积分的说明 17461432
捐赠科研通 5463331
什么是DOI,文献DOI怎么找? 2886692
邀请新用户注册赠送积分活动 1863115
关于科研通互助平台的介绍 1702342