首页> 中文期刊> 《计算机与现代化》 >一种有效的API搜索算法

一种有效的API搜索算法

             

摘要

近年来程序库日趋复杂。当面对不熟悉的开发领域或者功能模块时,开发者通常需要借助搜索引擎或者查阅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.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号