DeepDir: a Deep Learning Approach for API Directive Detection

Jingxuan ZHANG,He JIANG,Shuai LU,Ge LI,Xin CHEN
DOI: https://doi.org/10.1007/s11432-019-1520-6
2021-01-01
Science China Information Sciences
Abstract:Dear editor, Software developers tend to reuse existing libraries to facili-tate their development process and implement certain func-tionalities by invoking application programming interfaces(APIs)[1].However,it remains a challenging task for de-vel.opers to correctly use APIs[2],so they often consult API learning resources[3,4].As one of the most important API learning resources,API specifications (also known as API references) detail the instructions on legal API usages with different types of knowledge[1],e.g.,functionalities,con-cepts,and code samples.Out of these knowledge types,developers should particularly pay attention to API direc-tives,i.e.,the natural language statements to describe clear constraints or guidelines that developers should be aware of when programming with APIs[5].Once API directives are neglected,fatal development and performance bugs may be easily produced in programming.Hence,it could be ideal if API directives can be automatically detected.
What problem does this paper attempt to address?