{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,6]],"date-time":"2025-12-06T17:09:20Z","timestamp":1765040960630},"reference-count":20,"publisher":"World Scientific Pub Co Pte Lt","issue":"07","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Int. J. Soft. Eng. Knowl. Eng."],"published-print":{"date-parts":[[2019,7]]},"abstract":"<jats:p> Modern programming relies on a large number of fundamental APIs, but programmers often take great effort to remember names and the usage of APIs when coding, and repeatedly search the related API documents or Q&amp;A websites (e.g. Stack Overflow). To improve the programming efficiency, we present a Java API suggestion model called APIHelper which learns API sequence pattern via the Long Short-Term Memory (LSTM) network, then provides API suggestion based on the program context. Comparing with statistical methods (e.g. Hidden Markov Model (HMM), N-gram), which require establishing one specific model for each class, we propose Deterministic Negative Sampling (DNS) to make API suggestion for a large number of Java classes by one single end-to-end LSTM. To verify this approach, we make API suggestion for 50,000 Java classes and evaluate it with accuracy and top-K accuracy. The results show that APIHelper outperforms other research works both on accuracy and computation efficiency. <\/jats:p>","DOI":"10.1142\/s0218194019500347","type":"journal-article","created":{"date-parts":[[2019,8,7]],"date-time":"2019-08-07T05:26:02Z","timestamp":1565155562000},"page":"1029-1051","source":"Crossref","is-referenced-by-count":7,"title":["LSTM-Based with Deterministic Negative Sampling for API Suggestion"],"prefix":"10.1142","volume":"29","author":[{"given":"Jinpei","family":"Yan","sequence":"first","affiliation":[{"name":"School of Electronic and Information Engineering, Xi\u2019an Jiaotong University, No. 28, Xianning West Road, Xi\u2019an 710049, China"}]},{"given":"Yong","family":"Qi","sequence":"additional","affiliation":[{"name":"School of Electronic and Information Engineering, Xi\u2019an Jiaotong University, No. 28, Xianning West Road, Xi\u2019an 710049, China"}]},{"given":"Qifan","family":"Rao","sequence":"additional","affiliation":[{"name":"School of Electronic and Information Engineering, Xi\u2019an Jiaotong University, No. 28, Xianning West Road, Xi\u2019an 710049, China"}]},{"given":"Hui","family":"He","sequence":"additional","affiliation":[{"name":"School of Electronic and Information Engineering, Xi\u2019an Jiaotong University, No. 28, Xianning West Road, Xi\u2019an 710049, China"}]},{"given":"Saiyu","family":"Qi","sequence":"additional","affiliation":[{"name":"School of Cyber Engineering, Xidian University, No. 2 South Taibai Road, Xi\u2019an 710071, China"}]}],"member":"219","published-online":{"date-parts":[[2019,8,6]]},"reference":[{"key":"S0218194019500347BIB001","doi-asserted-by":"publisher","DOI":"10.1145\/1137983.1137997"},{"key":"S0218194019500347BIB002","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2013.6624045"},{"key":"S0218194019500347BIB003","doi-asserted-by":"publisher","DOI":"10.1145\/2950290.2950319"},{"key":"S0218194019500347BIB004","doi-asserted-by":"publisher","DOI":"10.1145\/1595696.1595767"},{"key":"S0218194019500347BIB005","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2017.47"},{"key":"S0218194019500347BIB006","doi-asserted-by":"publisher","DOI":"10.1145\/2950290.2950334"},{"key":"S0218194019500347BIB007","doi-asserted-by":"publisher","DOI":"10.1145\/2666356.2594321"},{"key":"S0218194019500347BIB008","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03013-0_15"},{"key":"S0218194019500347BIB009","doi-asserted-by":"publisher","DOI":"10.1145\/1869459.1869486"},{"key":"S0218194019500347BIB010","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2016.07.026"},{"key":"S0218194019500347BIB011","doi-asserted-by":"publisher","DOI":"10.1145\/2814270.2814295"},{"key":"S0218194019500347BIB012","doi-asserted-by":"publisher","DOI":"10.1109\/APSEC.2017.82"},{"key":"S0218194019500347BIB014","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837671"},{"key":"S0218194019500347BIB015","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2015.336"},{"key":"S0218194019500347BIB016","doi-asserted-by":"publisher","DOI":"10.1145\/2786805.2786849"},{"key":"S0218194019500347BIB017","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2015.38"},{"key":"S0218194019500347BIB019","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2015.109"},{"key":"S0218194019500347BIB020","first-page":"416","volume-title":"Proc. 38th Int. Conf. Software Engineering","author":"Pham H. V.","year":"2016"},{"key":"S0218194019500347BIB021","doi-asserted-by":"publisher","DOI":"10.1162\/neco.1997.9.8.1735"},{"key":"S0218194019500347BIB022","doi-asserted-by":"publisher","DOI":"10.1145\/2647868.2654926"}],"container-title":["International Journal of Software Engineering and Knowledge Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.worldscientific.com\/doi\/pdf\/10.1142\/S0218194019500347","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2021,1,3]],"date-time":"2021-01-03T12:19:01Z","timestamp":1609676341000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.worldscientific.com\/doi\/abs\/10.1142\/S0218194019500347"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,7]]},"references-count":20,"journal-issue":{"issue":"07","published-print":{"date-parts":[[2019,7]]}},"alternative-id":["10.1142\/S0218194019500347"],"URL":"https:\/\/doi.org\/10.1142\/s0218194019500347","relation":{},"ISSN":["0218-1940","1793-6403"],"issn-type":[{"value":"0218-1940","type":"print"},{"value":"1793-6403","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,7]]}}}