任志磊

个人信息Personal Information

教授

博士生导师

硕士生导师

任职 : 软件工程研究所副所长

性别:男

毕业院校:大连理工大学

学位:博士

所在单位:软件学院、国际信息与软件学院

电子邮箱:zren@dlut.edu.cn

扫描关注

论文成果

当前位置: 任志磊 >> 科学研究 >> 论文成果

An Unsupervised Approach for Discovering Relevant Tutorial Fragments for APIs

点击次数:

论文类型:会议论文

发表时间:2017-01-01

收录刊物:Scopus、EI、CPCI-S

页面范围:38-48

关键字:Application Programming Interface; PageRank Algorithm; Topic Model; Unsupervised Approaches

摘要:Developers increasingly rely on API tutorials to facilitate software development. However, it remains a challenging task for them to discover relevant API tutorial fragments explaining unfamiliar APIs. Existing supervised approaches suffer from the heavy burden of manually preparing corpus-specific annotated data and features. In this study, we propose a novel unsupervised approach, namely Fragment Recommender for APIs with PageRank and Topic model (FRAPT). FRAPT can well address two main challenges lying in the task and effectively determine relevant tutorial fragments for APIs. In FRAPT, a Fragment Parser is proposed to identify APIs in tutorial fragments and replace ambiguous pronouns and variables with related ontologies and API names, so as to address the pronoun and variable resolution challenge. Then, a Fragment Filter employs a set of non-explanatory detection rules to remove non-explanatory fragments, thus address the non-explanatory fragment identification challenge. Finally, two correlation scores are achieved and aggregated to determine relevant fragments for APIs, by applying both topic model and PageRank algorithm to the retained fragments. Extensive experiments over two publicly open tutorial corpora show that, FRAPT improves the state-of-the-art approach by 8.77% and 12.32% respectively in terms of F-Measure. The effectiveness of key components of FRAPT is also validated.