一种有效的API搜索算法  

An Efficient API Search Algorithm

在线阅读下载全文

作  者:宋文灏 钟浩[2] 于海波[1] 

机构地区:[1]上海交通大学软件学院,上海200240 [2]上海交通大学计算机科学与工程系,上海200240

出  处:《计算机与现代化》2016年第4期59-64,共6页Computer and Modernization

基  金:国家自然科学基金资助项目(61572313)

摘  要:近年来程序库日趋复杂。当面对不熟悉的开发领域或者功能模块时,开发者通常需要借助搜索引擎或者查阅API文档的方式来选择合适的API来进行开发。然而传统搜索引擎的搜索结果过于碎片化以及API文档中检索的不便使得这一过程十分耗时。本文提出一种新的搜索算法,并根据该算法实现一个API搜索工具APIBook。APIBook能够根据用户对API功能的自然语言描述,结合软件库中API的语义信息、类型信息和调用情况,向用户推荐相关的API,并且给出API调用的代码示例。实验表明APIBook在API搜索上比传统的检索模型更加有效。Software libraries become more and more complex in recent years. When working on unfamiliar fields and functions,developers often have to rely on search engine or reading API documents to develop program with right API. However,the result of traditional search engine doesn't focus on APIs and it is not very convenient to search in API documents,which makes this process very time consuming. We proposed a new search algorithm and implemented a tool APIBook for API search. APIBook can recommend relevant APIs to users based on natural language query as well as APIs' semantic,type,and invocation information in software libraries. Experiment shows that APIBook is more effective than traditional search model.

关 键 词:应用编程接口 信息检索 代码推荐 程序分析 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象