Graph Embedding Based API Graph Search and Recommendation

来源 :计算机科学技术学报(英文版) | 被引量 : 0次 | 上传用户:qisini7814
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
Searching application programming interfaces (APIs) is very important for developers to reuse software projects. Existing natural language based API search mainly faces the following challenges. 1) More accurate results are required as software projects evolve to be more heterogeneous and complex. 2) The semantic relationships between APIs (e.g., inheri-tances between classes, and invocations between methods) need to be illustrated so that developers can better understand their usage scenarios. To deal with these issues, we propose GeAPI, a novel graph embedding based approach for API graph search and recommendation in this paper. First, we build a software project’s API graph automatically from its source code and represent each API using graph embedding methods. Second, we search the API graph with a question in natural language, and ret the corresponding subgraph that is composed of relevant code elements and their associated relationships, as the best answer of the question. In experiments, we select three well-known open source projects, JodaTime, Apache Lucene and POI, as examples to perform API search tasks. The experimental results show that our approach GeAPI improves F 1-score by 10%compared with the existing shortest path based API search approach, while reduces the average response time about 60 times.
其他文献
Docker has been the mainstream technology of providing reusable software artifacts recently. Developers can easily build and deploy their applications using Doc
期刊
目的对2012-2014年邢台市人布鲁氏杆菌病疑似病例血清学结果进行分析,为做好预防控制工作提供依据。方法参照《布鲁氏菌病防治手册》、传染病WS 269-2007国家标准方法进行布
椎间盘钙化少见,尤以儿童及青少年钙化更少见,其原因不明,为特发性良性病变,本院最近遇见1例现报告如下.
Missing checks for untrusted inputs used in security-sensitive operations is one of the major causes of various vulnerabilities. Efficiently detecting and repai
目的 探讨眼眶爆裂骨折的螺旋CT(SCT)表现 ,评价临床指导价值。方法  12 0例眼眶爆裂骨折行SCT容积扫描得到常规轴位像后 ,通过重建得到多平面 (MPR)图像 ,根据图像分析并
期刊
目的了解上海市松江区2005-2015年甲乙类传染病的发病趋势和流行特征。方法根据2005-2015年松江区乙类传染病疫情资料,对该期间乙类传染病的动态、发病顺位、主要传染病的三
期刊
目的对正常成人肺脏MRI纵向弛豫时间进行测量研究.方法选择健康志愿者18人,在获得较为理想的肺部MRI图像的基础上,健康志愿者按上中、下、肺野和左、右肺及性别分组,分别测量