inferring method specifications from natural language api descriptions
文献类型:会议论文
作者 | Pandita Rahul ; Xiao Xusheng ; Zhong Hao ; Xie Tao ; Oney Stephen ; Paradkar Amit |
出版日期 | 2012 |
会议名称 | 34th International Conference on Software Engineering, ICSE 2012 |
会议日期 | June 2, 2012 - June 9, 2012 |
会议地点 | Zurich, Switzerland |
关键词 | Computer software reusability Software engineering Specifications |
页码 | 815-825 |
中文摘要 | Application Programming Interface (API) documents are a typical way of describing legal usage of reusable software libraries, thus facilitating software reuse. However, even with such documents, developers often overlook some documents and build software systems that are inconsistent with the legal usage of those libraries. Existing software verification tools require formal specifications (such as code contracts), and therefore cannot directly verify the legal usage described in natural language text in API documents against code using that library. However, in practice, most libraries do not come with formal specifications, thus hindering tool-based verification. To address this issue, we propose a novel approach to infer formal specifications from natural language text of API documents. Our evaluation results show that our approach achieves an average of 92% precision and 93% recall in identifying sentences that describe code contracts from more than 2500 sentences of API documents. Furthermore, our results show that our approach has an average 83% accuracy in inferring specifications from over 1600 sentences describing code contracts. © 2012 IEEE. |
英文摘要 | Application Programming Interface (API) documents are a typical way of describing legal usage of reusable software libraries, thus facilitating software reuse. However, even with such documents, developers often overlook some documents and build software systems that are inconsistent with the legal usage of those libraries. Existing software verification tools require formal specifications (such as code contracts), and therefore cannot directly verify the legal usage described in natural language text in API documents against code using that library. However, in practice, most libraries do not come with formal specifications, thus hindering tool-based verification. To address this issue, we propose a novel approach to infer formal specifications from natural language text of API documents. Our evaluation results show that our approach achieves an average of 92% precision and 93% recall in identifying sentences that describe code contracts from more than 2500 sentences of API documents. Furthermore, our results show that our approach has an average 83% accuracy in inferring specifications from over 1600 sentences describing code contracts. © 2012 IEEE. |
收录类别 | EI |
会议主办者 | IEEE Computer Society; ACM; University of Zurich (UZH), Department of Informatics; Technical Council on Software Engineering (TCSE); Special Interest Group on Software Engineering (SIGSOFT); SI-SE |
会议录 | Proceedings - International Conference on Software Engineering
![]() |
语种 | 英语 |
ISSN号 | 0270-5257 |
ISBN号 | 9781467310673 |
源URL | [http://ir.iscas.ac.cn/handle/311060/15784] ![]() |
专题 | 软件研究所_软件所图书馆_会议论文 |
推荐引用方式 GB/T 7714 | Pandita Rahul,Xiao Xusheng,Zhong Hao,et al. inferring method specifications from natural language api descriptions[C]. 见:34th International Conference on Software Engineering, ICSE 2012. Zurich, Switzerland. June 2, 2012 - June 9, 2012. |
入库方式: OAI收割
来源:软件研究所
浏览0
下载0
收藏0
其他版本
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。