ISCAS OpenIR  > 互联网软件技术实验室
inferring specifications for resources from natural language api documentation
Zhong Hao; Zhang Lu; Xie Tao; Mei Hong
2011
会议录名称Automated Software Engineering
页码227-261
收录类别ei
出版地Netherlands
ISSN9288910
部门归属(1) Laboratory for Internet Software Technologies, Institute of Software, Chinese Academy of Sciences, Beijing, China; (2) School of Electronics Engineering and Computer Science, Peking University, Beijing, China; (3) Key Laboratory of High Confidence Software Technologies, Peking University, Ministry of Education, Beijing, China; (4) Department of Computer Science, North Carolina State University, Raleigh, United States
摘要Many software libraries, especially those commercial ones, provide API documentation in natural languages to describe correct API usages. However, developers may still write code that is inconsistent with API documentation, partially because many developers are reluctant to carefully read API documentation as shown by existing research. As these inconsistencies may indicate defects, researchers have proposed various detection approaches, and these approaches need many known specifications. As it is tedious to write specifications manually for all APIs, various approaches have been proposed to mine specifications automatically. In the literature, most existing mining approaches rely on analyzing client code, so these mining approaches would fail to mine specifications when client code is not sufficient. Instead of analyzing client code, we propose an approach, called Doc2Spec, that infers resource specifications from API documentation in natural languages. We evaluated our approach on the Javadocs of five libraries. The results show that our approach performs well on real scale libraries, and infers various specifications with relatively high precisions, recalls, and F-scores. We further used inferred specifications to detect defects in open source projects. The results show that specifications inferred by Doc2Spec are useful to detect real defects in existing projects. © Springer Science+Business Media, LLC 2011.
关键词Application Programming Interfaces (Api) Defects Software Engineering
语种英语
WOS记录号WOS:000292556500002
引用统计
内容类型会议论文
URI标识http://ir.iscas.ac.cn/handle/311060/14275
专题互联网软件技术实验室
推荐引用方式
GB/T 7714
Zhong Hao,Zhang Lu,Xie Tao,et al. inferring specifications for resources from natural language api documentation[C]. Netherlands,2011:227-261.
条目包含的文件
文件名称/大小 文献类型 版本类型 开放类型 使用许可
inferring specificat(1842KB) 开放获取--请求全文
个性服务
推荐该条目
保存到收藏夹
查看访问统计
导出为Endnote文件
谷歌学术
谷歌学术中相似的文章
[Zhong Hao]的文章
[Zhang Lu]的文章
[Xie Tao]的文章
百度学术
百度学术中相似的文章
[Zhong Hao]的文章
[Zhang Lu]的文章
[Xie Tao]的文章
必应学术
必应学术中相似的文章
[Zhong Hao]的文章
[Zhang Lu]的文章
[Xie Tao]的文章
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
暂无评论
 

除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。