API method recommendation without worrying about the task-API knowledge gap

Developers often need to search for appropriate APIs for theirprogramming tasks. Although most libraries have API referencedocumentation, it is not easy to find appropriate APIs due to thelexical gap and knowledge gap between the natural language description of the programming task and the API descr...

Full description

Saved in:
Bibliographic Details
Main Authors: HUANG, Qiao, XIA, Xin, XING, Zhenchang, LO, David, WANG, Xinyu
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2018
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/4297
https://ink.library.smu.edu.sg/context/sis_research/article/5300/viewcontent/ase182.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-5300
record_format dspace
spelling sg-smu-ink.sis_research-53002019-02-21T08:36:30Z API method recommendation without worrying about the task-API knowledge gap HUANG, Qiao XIA, Xin XING, Zhenchang LO, David WANG, Xinyu Developers often need to search for appropriate APIs for theirprogramming tasks. Although most libraries have API referencedocumentation, it is not easy to find appropriate APIs due to thelexical gap and knowledge gap between the natural language description of the programming task and the API description in APIdocumentation. Here, the lexical gap refers to the fact that the samesemantic meaning can be expressed by different words, and theknowledge gap refers to the fact that API documentation mainlydescribes API functionality and structure but lacks other types ofinformation like concepts and purposes, which are usually the keyinformation in the task description. In this paper, we propose an APIrecommendation approach named BIKER (Bi-Information sourcebased KnowledgE Recommendation) to tackle these two gaps. Tobridge the lexical gap, BIKER uses word embedding technique tocalculate the similarity score between two text descriptions. Inspired by our survey findings that developers incorporate StackOverflow posts and API documentation for bridging the knowledgegap, BIKER leverages Stack Overflow posts to extract candidateAPIs for a program task, and ranks candidate APIs by consideringthe query’s similarity with both Stack Overflow posts and API documentation. It also summarizes supplementary information (e.g.,API description, code examples in Stack Overflow posts) for eachAPI to help developers select the APIs that are most relevant totheir tasks. Our evaluation with 413 API-related questions confirmsthe effectiveness of BIKER for both class- and method-level API recommendation, compared with state-of-the-art baselines. Our userstudy with 28 Java developers further demonstrates the practicalityof BIKER for API search. 2018-09-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/4297 info:doi/10.1145/3238147.3238191 https://ink.library.smu.edu.sg/context/sis_research/article/5300/viewcontent/ase182.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University API Recommendation API Documentation Stack Overflow Word Embedding Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic API Recommendation
API Documentation
Stack Overflow
Word Embedding
Software Engineering
spellingShingle API Recommendation
API Documentation
Stack Overflow
Word Embedding
Software Engineering
HUANG, Qiao
XIA, Xin
XING, Zhenchang
LO, David
WANG, Xinyu
API method recommendation without worrying about the task-API knowledge gap
description Developers often need to search for appropriate APIs for theirprogramming tasks. Although most libraries have API referencedocumentation, it is not easy to find appropriate APIs due to thelexical gap and knowledge gap between the natural language description of the programming task and the API description in APIdocumentation. Here, the lexical gap refers to the fact that the samesemantic meaning can be expressed by different words, and theknowledge gap refers to the fact that API documentation mainlydescribes API functionality and structure but lacks other types ofinformation like concepts and purposes, which are usually the keyinformation in the task description. In this paper, we propose an APIrecommendation approach named BIKER (Bi-Information sourcebased KnowledgE Recommendation) to tackle these two gaps. Tobridge the lexical gap, BIKER uses word embedding technique tocalculate the similarity score between two text descriptions. Inspired by our survey findings that developers incorporate StackOverflow posts and API documentation for bridging the knowledgegap, BIKER leverages Stack Overflow posts to extract candidateAPIs for a program task, and ranks candidate APIs by consideringthe query’s similarity with both Stack Overflow posts and API documentation. It also summarizes supplementary information (e.g.,API description, code examples in Stack Overflow posts) for eachAPI to help developers select the APIs that are most relevant totheir tasks. Our evaluation with 413 API-related questions confirmsthe effectiveness of BIKER for both class- and method-level API recommendation, compared with state-of-the-art baselines. Our userstudy with 28 Java developers further demonstrates the practicalityof BIKER for API search.
format text
author HUANG, Qiao
XIA, Xin
XING, Zhenchang
LO, David
WANG, Xinyu
author_facet HUANG, Qiao
XIA, Xin
XING, Zhenchang
LO, David
WANG, Xinyu
author_sort HUANG, Qiao
title API method recommendation without worrying about the task-API knowledge gap
title_short API method recommendation without worrying about the task-API knowledge gap
title_full API method recommendation without worrying about the task-API knowledge gap
title_fullStr API method recommendation without worrying about the task-API knowledge gap
title_full_unstemmed API method recommendation without worrying about the task-API knowledge gap
title_sort api method recommendation without worrying about the task-api knowledge gap
publisher Institutional Knowledge at Singapore Management University
publishDate 2018
url https://ink.library.smu.edu.sg/sis_research/4297
https://ink.library.smu.edu.sg/context/sis_research/article/5300/viewcontent/ase182.pdf
_version_ 1770574603232477184