On the effectiveness of pretrained models for API learning

计算机科学 自然语言处理 人工智能 自然语言 语言模型 词汇分析 任务(项目管理) 情报检索 背景(考古学) 编码器 答疑 变压器 自动汇总 解析 编码 程序设计语言 古生物学 经济 电压 生物 量子力学 化学 管理 生物化学 物理 操作系统 基因
作者
M.A. Hadi,Imam Nur Bani Yusuf,Ferdian Thung,Kien Gia Luong,Lingxiao Jiang,Fatemeh H. Fard,David Lo
标识
DOI:10.1145/3524610.3527886
摘要

Developers frequently use APIs to implement certain functionalities, such as parsing Excel Files, reading and writing text files line by line, etc. Developers can greatly benefit from automatic API usage sequence generation based on natural language queries for building applications in a faster and cleaner manner. Existing approaches utilize information retrieval models to search for matching API sequences given a query or use RNN-based encoder-decoder to generate API sequences. As it stands, the first approach treats queries and API names as bags of words. It lacks deep comprehension of the semantics of the queries. The latter approach adapts a neural language model to encode a user query into a fixed-length context vector and generate API sequences from the context vector. We want to understand the effectiveness of recent Pre-trained Transformer based Models (PTMs) for the API learning task. These PTMs are trained on large natural language corpora in an unsupervised manner to retain contextual knowledge about the language and have found success in solving similar Natural Language Processing (NLP) problems. However, the applicability of PTMs has not yet been explored for the API sequence generation task. We use a dataset that contains 7 million annotations collected from GitHub to evaluate the PTMs empirically. This dataset was also used to assess previous approaches. Based on our results, PTMs generate more accurate API sequences and outperform other related methods by around 11%. We have also identified two different tokenization approaches that can contribute to a significant boost in PTMs' performance for the API sequence generation task.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
eve发布了新的文献求助10
1秒前
1秒前
2秒前
好运滚滚来完成签到,获得积分10
2秒前
张莹发布了新的文献求助10
3秒前
北堂完成签到,获得积分10
3秒前
3秒前
3秒前
efe发布了新的文献求助10
3秒前
乔伊Y完成签到,获得积分20
4秒前
FashionBoy应助失眠的契采纳,获得10
5秒前
Hanguo发布了新的文献求助10
5秒前
bhappy21完成签到,获得积分10
6秒前
Balance Man完成签到,获得积分10
7秒前
舒心玉兰发布了新的文献求助10
7秒前
SunnyWisdom完成签到,获得积分10
8秒前
丘比特应助只要一点点采纳,获得30
8秒前
8秒前
充电宝应助123采纳,获得10
9秒前
海咲umi应助kingybc采纳,获得10
9秒前
9秒前
糊涂的雅琴应助ndsiu采纳,获得10
10秒前
10秒前
爆米花应助潘特采纳,获得10
10秒前
10秒前
烟花应助z不停采纳,获得10
11秒前
CodeCraft应助xyx采纳,获得10
11秒前
小恺完成签到,获得积分10
13秒前
ysr完成签到,获得积分10
13秒前
Balance Man发布了新的文献求助10
13秒前
大个应助jja881采纳,获得10
15秒前
小清新发布了新的文献求助10
15秒前
skyangar完成签到,获得积分10
15秒前
15秒前
15秒前
科研通AI2S应助涂博强采纳,获得10
16秒前
cai完成签到,获得积分20
16秒前
fal完成签到,获得积分10
16秒前
背后的夜梅完成签到,获得积分10
16秒前
guhao发布了新的文献求助10
17秒前
高分求助中
GL 2 A method for assessing the in-place cleanability of food processing equipment, Fourth Edition, December 2023 3000
Annie Ernaux: De la perte au corps glorieux 600
Developing Solid Oral Dosage Forms Pharmaceutical Theory and Practice (3rd Edition) 500
Writing Systems 500
类器官构建与应用:从基础到前沿 500
Thermodynamics of Natural Systems 400
Electric Vehicle Powertrains Design Fundamentals, Components, and Applications 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6813490
求助须知:如何正确求助?哪些是违规求助? 8528757
关于积分的说明 18154977
捐赠科研通 6141632
什么是DOI,文献DOI怎么找? 3030664
邀请新用户注册赠送积分活动 2007378
关于科研通互助平台的介绍 2006906