已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

Documentation-Guided API Sequence Search without Worrying about the Text-API Semantic Gap

计算机科学 文档 应用程序编程接口 情报检索 软件 序列(生物学) 软件文档 程序设计语言 自然语言处理 软件开发 软件开发过程 遗传学 生物
作者
Hongwei Wei,Xiaohong Su,Weining Zheng,Wenxin Tao
标识
DOI:10.1109/saner56733.2023.00040
摘要

Developers often search for application programming interfaces (APIs) and their usage patterns to speed up the efficiency of software development. This paper focuses on the API sequence search task, which refers to using a function-relevant textual query to search for API sequences mined from open-source software repositories that can implement this function. However, the severe semantic gap between text and API makes it challenging to discover the correspondence between natural language queries and desired API sequences. Therefore, we propose a method called documentation-guided API sequence search (DGAS), through which we do not need to worry about the semantic gap between text and API. Specifically, DGAS consists of documentation-guided cross-modal attention (DGCA) and documentation-guided cross-modal matching (DGCM). DGCA calculates the cross-modal attention map using features extracted from the same modality (i.e., API documentation sequence and textual query) instead of from different modalities (i.e., API sequence and textual query) to bridge the semantic gap during the cross-modal attention phase. Besides, DGCM takes API documentation as supplementary information of API sequence to bridge the semantic gap during the cross-modal matching phase. We use the API documentation to extend the existing dataset for API sequence generation to construct a dataset for API sequence search to evaluate DGAS. Experimental results show that DGAS outperforms the baseline methods.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
jcc发布了新的文献求助10
1秒前
jcc发布了新的文献求助10
1秒前
2秒前
jcc发布了新的文献求助10
2秒前
斯文败类应助愉快的真采纳,获得10
3秒前
4秒前
jcc发布了新的文献求助10
5秒前
jcc发布了新的文献求助10
5秒前
jcc发布了新的文献求助10
5秒前
马桶盖盖子完成签到 ,获得积分10
5秒前
Janus发布了新的文献求助10
6秒前
6秒前
jcc发布了新的文献求助10
7秒前
7秒前
jcc发布了新的文献求助10
8秒前
不灵0发布了新的文献求助10
8秒前
jcc发布了新的文献求助10
8秒前
9秒前
jcc发布了新的文献求助10
9秒前
9秒前
9秒前
9秒前
10秒前
jcc发布了新的文献求助10
11秒前
jcc发布了新的文献求助10
11秒前
11秒前
jcc发布了新的文献求助10
11秒前
11秒前
jcc发布了新的文献求助10
11秒前
12秒前
jcc发布了新的文献求助10
12秒前
顺利毕业发布了新的文献求助30
12秒前
jcc发布了新的文献求助10
12秒前
jcc发布了新的文献求助30
12秒前
jcc发布了新的文献求助10
12秒前
12秒前
晕晕完成签到 ,获得积分10
12秒前
jcc发布了新的文献求助10
14秒前
jcc发布了新的文献求助10
14秒前
14秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Molecular Mechanisms of Photosynthesis, 4th Edition 1000
Organic Reactions, Volume 116 1000
Current concepts in cutaneous toxicity : proceedings of the Fourth Conference on Cutaneous Toxicity, Washington, D.C., May 9-11, 1979 1000
The recovery-stress questionnaires : user manual 800
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7257312
求助须知:如何正确求助?哪些是违规求助? 8879315
关于积分的说明 18756015
捐赠科研通 6937713
什么是DOI,文献DOI怎么找? 3201015
关于科研通互助平台的介绍 2375094
邀请新用户注册赠送积分活动 2176826