Institutional Repository
| 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 |
| ISSN | 9288910 |
| 部门归属 | (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) | 开放获取 | -- | 请求全文 | |||
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。
修改评论