inferring specifications for resources from natural language api documentation
文献类型:会议论文
作者 | Zhong Hao ; Zhang Lu ; Xie Tao ; Mei Hong |
出版日期 | 2011 |
关键词 | Application programming interfaces (API) Defects Software engineering |
页码 | 227-261 |
英文摘要 | 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. |
收录类别 | EI |
会议录 | Automated Software Engineering
![]() |
会议录出版地 | Netherlands |
语种 | 英语 |
ISSN号 | 9288910 |
WOS记录号 | WOS:000292556500002 |
源URL | [http://124.16.136.157/handle/311060/14275] ![]() |
专题 | 软件研究所_互联网软件技术实验室 _会议论文 |
推荐引用方式 GB/T 7714 | Zhong Hao,Zhang Lu,Xie Tao,et al. inferring specifications for resources from natural language api documentation[C]. 见:. |
入库方式: OAI收割
来源:软件研究所
浏览0
下载0
收藏0
其他版本
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。