ISCAS OpenIR  > 互联网软件技术实验室
inferring specifications for resources from natural language api documentation
Zhong Hao; Zhang Lu; Xie Tao; Mei Hong
2011
SourceAutomated Software Engineering
Pages227-261
Indexed Typeei
Publish PlaceNetherlands
ISSN9288910
Department(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
English AbstractMany 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.
KeywordApplication Programming Interfaces (Api) Defects Software Engineering
Language英语
WOS IDWOS:000292556500002
Citation statistics
Content Type会议论文
URIhttp://ir.iscas.ac.cn/handle/311060/14275
Collection互联网软件技术实验室
Recommended Citation
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.
Files in This Item:
File Name/Size DocType Version Access License
inferring specificat(1842KB) 开放获取--Application Full Text
Related Services
Recommend this item
Bookmark
Usage statistics
Export to Endnote
Google Scholar
Similar articles in Google Scholar
[Zhong Hao]'s Articles
[Zhang Lu]'s Articles
[Xie Tao]'s Articles
Baidu academic
Similar articles in Baidu academic
[Zhong Hao]'s Articles
[Zhang Lu]'s Articles
[Xie Tao]'s Articles
Bing Scholar
Similar articles in Bing Scholar
[Zhong Hao]'s Articles
[Zhang Lu]'s Articles
[Xie Tao]'s Articles
Terms of Use
No data!
Social Bookmark/Share
All comments (0)
No comment.
 

Items in the repository are protected by copyright, with all rights reserved, unless otherwise indicated.