arrow
Return

Rap4DQ: Learning to recommend relevant API documentation for developer questions

delete2021-11-29
delete0
PRE
AI
Y
Yi Li
S
Shaohua Wang *
W
Wenbo Wang
T
Tien N. Nguyen
Y
Yan Wang
X
Xinyue Ye
DOI:10.1007/s10664-021-10067-5delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Developers often face difficulties in using different API methods during the software development process. Answering API related questions on API Q&A forums often costs API development teams a lot of time. To help save time for API development teams, we propose a deep learning-based approach, namely Rap4DQ, to identify relevant web API documentation for developer's API related questions on API Q&A forums. Rap4DQ learns representation vectors for questions and API documentation separately using Gated Recurrent Unit (GRU) and adds different weights to reflect the various importance of varied API documents during training. Rap4DQ is designed to train on positive and negative samples with a loss function that minimizes the distances between questions and their relevant documentation, but maximizes the distances between questions and their irrelevant documentation. In the end, we construct a learning-to-rank layer to rank the API documentation based on learned representation vectors from GRUs. We have conducted several experiments to evaluate Rap4DQ on three popular and large API Q&A forums, Twitter, eBay, and AdWords. The results show that Rap4DQ can outperform all baselines by having a relative improvement up to 84.3% in terms of AUC. Rap4DQ can obtain a high AUC of 0.84, 0.88, and 0.94 on identifying relevant API documentation on Twitter, eBay, and AdWords, respectively.
Keywords:
Developer forums
Question answering
API documentation
Deep learning
Learning-to-Rank
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

U
University of Texas Dallas
Scholars:
5.6K
Papers: 5.0K
Citations: 15
N
New Jersey Institute of Technology
Scholars:
4.1K
Papers: 4.5K
Citations: 4.6K
U
university of texas system
Scholars:
18.5W
Papers: 15.6W
Citations: 210
C
central university of finance & economics
Scholars:
1.8K
Papers: 2.0K
Citations: 2
researcher View more organizations