API Recommendation Based on WII-WMD

API Recommendation Based on WII-WMD

Wanzhi Wen, Shiqiang Wang, Bingqing Ye, XingYu Zhu, Yitao Hu, Xiaohong Lu, Bin Zhang
DOI: 10.4018/IJCINI.20211001.oa16
Article PDF Download
Open access articles are freely available for download

Abstract

Improving software development efficiency based on existing APIs is one of the hot researches in software engineering. Understanding and learning so many APIs in large software libraries is not easy and software developers prefer to provide only requirements descriptions to get the right API. In order to solve this problem, this paper proposes an API recommendation method based on WII-WMD, an improved similarity calculation algorithm. This method firstly structures the text, and then fully mines the semantic information in the text. Finally, it calculates the similarity between the user's query problem and the information described in the API document. The experiment results show that the API recommendation based on WII-WMD can improve the efficiency of the API recommendation system.
Article Preview
Top

1. Introduction

Nowadays, with the rapid development of information technology, various improved algorithms are proposed to improve the technologies’ effectiveness (Li et al. 2018, Li et al. 2019a, Li et al. 2019b, Wang et al. 2018, Wang et al. 2019). Furthermore, software products are becoming more and more complex, and APIs in software libraries are becoming more and more abundant. Improving software development efficiency based on existing APIs has become one of the hot researches in software engineering. However, understanding and learning so many APIs in large software libraries is not easy (Ko et al. 2004), and software developers prefer to provide only requirements descriptions to get the right API. Existing keyword retrieval methods are difficult to identify lexical and syntactic differences between requirement description and API documents, which leads to low efficiency of API recommendation.

In order to improve the recommendation efficiency, researchers proposed many API recommendation techniques (Mcmillan et al. 2011, Chan et al. 2012, Holmes et al. 2005, Rahman et al. 2017, Goldberg et al. 2014, Hoecker et al. 1995, Eggert et al. 2004, Bengio et al. 2009, Jang et al. 2016, Ma et al. 2015), which include recommendation methods based on semantic and no-semantic information. Word embedding based API recommendation is one of the most popular techniques. Word embedding is a way to transform words in text into the form of vector representation (Lai et al. 2016). The simplest method of word embedding is one-hot coding based on the word bag model (Karakasis et al. 2015). One-hot coding is the most basic vector representation method, in which N bit state register is used to encode N states, and the text vector is used to represent the words in the text, where only the position corresponding to the word is 1 and all other positions are 0. The commonly-used technique is Word2Vec (Frome et al. 2013), which is based on the CBOW model and Skip-gram model. Both models are based on the three-layer structure in the neural network language model. In this method, each word in the text is represented by vector and the word vector with similar semantic information has close spatial position. The position of synonyms in vector space will be closer, which guarantees semantic information in the text (Lilleberg et al. 2015).

Complete Article List

Search this Journal:
Reset
Volume 18: 1 Issue (2024)
Volume 17: 1 Issue (2023)
Volume 16: 1 Issue (2022)
Volume 15: 4 Issues (2021)
Volume 14: 4 Issues (2020)
Volume 13: 4 Issues (2019)
Volume 12: 4 Issues (2018)
Volume 11: 4 Issues (2017)
Volume 10: 4 Issues (2016)
Volume 9: 4 Issues (2015)
Volume 8: 4 Issues (2014)
Volume 7: 4 Issues (2013)
Volume 6: 4 Issues (2012)
Volume 5: 4 Issues (2011)
Volume 4: 4 Issues (2010)
Volume 3: 4 Issues (2009)
Volume 2: 4 Issues (2008)
Volume 1: 4 Issues (2007)
View Complete Journal Contents Listing