Improving API Knowledge Discovery with ML: A Case Study of Comparable API Methods | IEEE Conference Publication | IEEE Xplore

Improving API Knowledge Discovery with ML: A Case Study of Comparable API Methods


Abstract:

Developers constantly learn new APIs, but often lack necessary information from documentation, resorting instead to popular question-and-answer platforms such as Stack Ov...Show More

Abstract:

Developers constantly learn new APIs, but often lack necessary information from documentation, resorting instead to popular question-and-answer platforms such as Stack Overflow. In this paper, we investigate how to use recent machine-Iearning-based knowledge extraction techniques to automatically identify pairs of comparable API methods and the sentences describing the comparison from Stack Overflow answers. We first built a prototype that can be stocked with a dataset of comparable API methods and provides tool-tips to users in search results and in API documentation. We conducted a user study with this tool based on a dataset of TensorFlow comparable API methods spanning 198 hand-annotated facts from Stack Overflow posts. This study confirmed that providing comparable API methods can be useful for helping developers understand the design space of APIs: developers using our tool were significantly more aware of the comparable API methods and better understood the differences between them. We then created SOREL, an comparable API methods knowledge extraction tool trained on our hand-annotated corpus, which achieves a 71% precision and 55% recall at discovering our manually extracted facts and discovers 433 pairs of comparable API methods from thousands of unseen Stack Overflow posts. This work highlights the merit of jointly studying programming assistance tools and constructing machine learning techniques to power them.
Date of Conference: 14-20 May 2023
Date Added to IEEE Xplore: 14 July 2023
ISBN Information:

ISSN Information:

Conference Location: Melbourne, Australia

Funding Agency:


Contact IEEE to Subscribe

References

References is not available for this document.