引用本文:沈琦,钱莹,邹艳珍,伍仕骏,谢冰.融合代码与文档的软件功能特征挖掘方法.软件学报,2021,32(4):1023-1038
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 2924次   下载 7471 本文二维码信息
码上扫一扫!
分享到: 微信 更多
融合代码与文档的软件功能特征挖掘方法
沈琦1,2, 钱莹1,2, 邹艳珍1,2, 伍仕骏1,2, 谢冰1,2
1.高可信软件技术教育部重点实验室(北京大学), 北京 100871;2.北京大学 信息科学技术学院, 北京 100871
摘要:
在软件复用过程中,简洁、清楚的软件功能自然语言描述是帮助复用者快速了解待复用软件项目/代码库的前提和基础.但当前开源软件往往缺乏高质量的软件功能说明文档,使得这一过程变得更加复杂和困难.为此,提出了一种融合代码与文档的软件功能特征挖掘方法.该方法以动宾短语的形式描述软件功能特征,通过迭代挖掘软件源代码和以Stack Overflow讨论帖为代表的软件文档,自动提取开源软件的功能特征描述,并构造了层次化的软件功能特征视图.在针对多个开源软件项目的实验中,该方法可覆盖官方文档中列举的95.38%的软件功能.挖掘结果中语句和功能特征的准确率分别达到了93.78%和92.57%.对比现有工作TaskNav和APITasks,该方法在平均准确率上分别提升了28.78%和11.56%.
关键词:  软件复用  软件功能特征  开源软件  自然语言编程接口
DOI:10.13328/j.cnki.jos.006228
分类号:TP311
基金项目:国家自然科学基金(61972006);国家杰出青年科学基金(61525201)
Fusing Code and Documents to Mine Software Functional Features
SHEN Qi1,2, QIAN Ying1,2, ZOU Yan-Zhen1,2, WU Shi-Jun1,2, XIE Bing1,2
1.Key Laboratory of High Confidence Software Technologies of Ministry of Education (Peking University), Beijing 100871, China;2.School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China
Abstract:
In the process of software reuse, users need concise and clear natural language description of software functions to understand the candidate software project quickly. However, current open source software often lacks high-quality documentation, which makes this process even more complex and difficult. This study proposes a novel functional feature mining approach combining code and documentation. It describes functional features in the form of verb phrases, automatically extracts functional features by iterately mining source code and software documents such as Stack Overflow, associates corresponding API usage example for each functional feature, and builds hierarchical functional feature view for uses finally. The experiments are set on several open source software and its related heterogeneous data, the results show that the functional features generated by the proposed approach cover 95.38% of the functions in official documentation, and the proposed approach achieves 93.78% and 92.57% accuracy for mining sentences and functional features respectively. Compared to two existing tools TaskNav and APITasks, the proposed approach improves the accuracy by 28.78% and 11.56% separately.
Key words:  software reuse  software functional feature  open source software  natural language interface

引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览次   下载  
分享到: 微信 更多
摘要:
关键词:  
DOI:
分类号:
基金项目:
Abstract:
Key words: