CORC  > 北京大学  > 信息科学技术学院
Inferring specifications for resources from natural language API documentation
Zhong, Hao ; Zhang, Lu ; Xie, Tao ; Mei, Hong
2011
英文摘要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; 3-4; 227-261; 18
语种英语
DOI标识10.1007/s10515-011-0082-3
内容类型其他
源URL[http://ir.pku.edu.cn/handle/20.500.11897/461518]  
专题信息科学技术学院
推荐引用方式
GB/T 7714
Zhong, Hao,Zhang, Lu,Xie, Tao,et al. Inferring specifications for resources from natural language API documentation. 2011-01-01.
个性服务
查看访问统计
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
暂无评论
 

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


©版权所有 ©2017 CSpace - Powered by CSpace