检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:Jing-Xuan Zhang Chuan-Qi Tao Zhi-Qiu Huang Xin Chen
机构地区:[1]College of Compute Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 210016,China [2]Key Laboratory of Safety-Critical Software(Nanjing University of Aeronautics and Astronautics),Ministry of Industry and Information Technology,Nanjing 210016,China [3]Key Laboratory of Complex Systems Modeling and Simulation(Hangzhou Dianzi University),Ministry of Education Hangzhou 310018,China [4]School of Computer Science and Technology,Hangzhou Dianzi University,Hangzhou 310018,China
出 处:《Journal of Computer Science & Technology》2021年第4期922-943,共22页计算机科学技术学报(英文版)
基 金:the National Key Research and Development Plan of China under Grant No.2018YFB1003900;the National Natural Science Foundation of China under Grant No.61902181,the China Postdoctoral Science Foundation under Grant No.2020M671489;the CCF-Tencent Open Research Fund under Grant No.RAGR20200106.
摘 要:Application programming interface(API)libraries are extensively used by developers.To correctly program with APIs and avoid bugs,developers shall pay attention to API directives,which illustrate the constraints of APIs.Unfortunately,API directives usually have diverse morphologies,making it time-consuming and error-prone for developers to discover all the relevant API directives.In this paper,we propose an approach leveraging text classification to discover API directives from API specifications.Specifically,given a set of training sentences in API specifications,our approach first characterizes each sentence by three groups of features.Then,to deal with the unequal distribution between API directives and non-directives,our approach employs an under-sampling strategy to split the imbalanced training set into several subsets and trains several classifiers.Given a new sentence in an API specification,our approach synthesizes the trained classifiers to predict whether it is an API directive.We have evaluated our approach over a publicly available annotated API directive corpus.The experimental results reveal that our approach achieves an F-measure value of up to 82.08%.In addition,our approach statistically outperforms the state-of-the-art approach by up to 29.67%in terms of F-measure.
关 键 词:Application programming interface(API)directive API specification imbalanced learning text classification
分 类 号:TP39[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7