paper-with-me

홈 › Papers

Holistic Combination of Structural and Textual Code Information for Context based API Recommendation

2020-10-15 · Chi Chen, Xin Peng, Zhenchang Xing, Jun Sun, Xin Wang, Yifan Zhao, Wenyun Zhao

Context based API recommendation is an important way to help developers find the needed APIs effectively and efficiently. For effective API recommendation, we need not only a joint view of both structural and textual code information, but also a holistic view of correlated API usage in control and data flow graph as a whole. Unfortunately, existing API recommendation methods exploit structural or textual code information separately. In this work, we propose a novel API recommendation approach called APIRec-CST (API Recommendation by Combining Structural and Textual code information). APIRec-CST is a deep learning model that combines the API usage with the text information in the source code based on an API Context Graph Network and a Code Token Network that simultaneously learn structural and textual features for API recommendation. We apply APIRec-CST to train a model for JDK library based on 1,914 open-source Java projects and evaluate the accuracy and MRR (Mean Reciprocal Rank) of API recommendation with another 6 open-source projects. The results show that our approach achieves respectively a top-1, top-5, top-10 accuracy and MRR of 60.3%, 81.5%, 87.7% and 69.4%, and significantly outperforms an existing graph-based statistical approach and a tree-based deep learning approach for API recommendation. A further analysis shows that textual code information makes sense and improves the accuracy and MRR. We also conduct a user study in which two groups of students are asked to finish 6 programming tasks with or without our APIRec-CST plugin. The results show that APIRec-CST can help the students to finish the tasks faster and more accurately and the feedback on the usability is overwhelmingly positive.

📄 PDF Abstract BibTeX arXiv:2010.07514

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

HRDFuse: Monocular 360deg Depth Estimation by Collaboratively Learning Holistic-With-Regional Depth Distributions

2023-01-01 · CVPR 2023 1 · Hao Ai, Zidong Cao, Yan-Pei Cao, Ying Shan 외

Depth estimation from a monocular 360 image is a burgeoning problem owing to its holistic sensing of a scene. Recently, some methods, e.g., OmniFusion, have applied the tangent projection (TP) to represent a 360 imag…

Depth EstimationERP

HRDFuse: Monocular 360°Depth Estimation by Collaboratively Learning Holistic-with-Regional Depth Distributions

2023-03-21 · Hao Ai, Zidong Cao, Yan-Pei Cao, Ying Shan 외

Depth estimation from a monocular 360{\deg} image is a burgeoning problem owing to its holistic sensing of a scene. Recently, some methods, \eg, OmniFusion, have applied the tangent projection (TP) to represent a 360{\de…

Depth EstimationERP

Beyond Talking -- Generating Holistic 3D Human Dyadic Motion for Communication

2024-03-28 · Mingze Sun, Chao Xu, Xinyu Jiang, Yang Liu 외

In this paper, we introduce an innovative task focused on human communication, aiming to generate 3D holistic human motions for both speakers and listeners. Central to our approach is the incorporation of factorization t…

Ovis: Structural Embedding Alignment for Multimodal Large Language Model

2024-05-31 · Shiyin Lu, Yang Li, Qing-Guo Chen, Zhao Xu 외

Current Multimodal Large Language Models (MLLMs) typically integrate a pre-trained LLM with another pre-trained vision transformer through a connector, such as an MLP, endowing the LLM with visual capabilities. However, …

Language ModelingMultimodal Large Language ModelVisual Question Answering (VQA)

Multi-level Contextual RNNs with Attention Model for Scene Labeling

2016-07-08 · Heng Fan, Xue Mei, Danil Prokhorov, Haibin Ling

Context in image is crucial for scene labeling while existing methods only exploit local context generated from a small surrounding area of an image patch or a pixel, by contrast long-range and global contextual informat…

Scene Labeling