arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1703.01553cs.SE
收藏

一个更精确的模型来寻找解释API的数据段

A More Accurate Model for Finding Tutorial Segments Explaining APIs

He Jiang, Jingxuan Zhang, Xiaochen Li, Zhilei Ren, David Lo

摘要:

开发人员在实现某些功能时更喜欢使用第三方库,并且他们经常使用应用程序编程接口(API)。面对一个不熟悉的API,开发人员倾向于参考教程作为学习资源。不幸的是,解释特定API的部分分散在教程中。因此,寻找相关分部仍然是一个具有挑战性的问题。在这项研究中,我们提出了一个更准确的模型来找到解释API的确切教程片段。这个新模型由一个具有特定领域特征的文本分类器组成。更具体地说,我们发现了两个重要的指标,以补充传统的基于文本的功能,即共现API和基于知识的API扩展。此外,我们将Word2Vec,语义相似性度量,以增强新的模型。在两个公开的教程数据集上进行的广泛实验表明,我们的新模型可以找到高达90%的解释API的片段,并在F度量方面将最先进的模型提高了30%。

英文摘要:

Developers prefer to utilize third-party libraries when they implement some functionalities and Application Programming Interfaces (APIs) are frequently used by them. Facing an unfamiliar API, developers tend to consult tutorials as learning resources. Unfortunately, the segments explaining a specific API scatter across tutorials. Hence, it remains a challenging issue to find the relevant segments. In this study, we propose a more accurate model to find the exact tutorial fragments explaining APIs. This new model consists of a text classifier with domain specific features. More specifically, we discover two important indicators to complement traditional text based features, namely co-occurrence APIs and knowledge based API extensions. In addition, we incorporate Word2Vec, a semantic similarity metric to enhance the new model. Extensive experiments over two publicly available tutorial datasets show that our new model could find up to 90% fragments explaining APIs and improve the state-of-the-art model by up to 30% in terms of F-measure.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑