Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflow

被引:5
|
作者
Naghshzan, AmirHossein [1 ]
Guerrouj, Latifa [1 ]
Baysal, Olga [2 ]
机构
[1] Ecole Technol Super, Montreal, PQ, Canada
[2] Carleton Univ, Ottawa, ON, Canada
关键词
code summarization; unsupervised learning; unofficial documentation; survey; professional developers;
D O I
10.1109/SCAM52516.2021.00026
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automated source code summarization is a task that generates summarized information about the purpose, usage, and-or implementation of methods and classes to support understanding of these code entities. Multiple approaches and techniques have been proposed for supervised and unsupervised learning in code summarization, however, they were mostly focused on generating a summary for a piece of code. In addition, very few works have leveraged unofficial documentation. This paper proposes an automatic and novel approach for summarizing Android API methods discussed in Stack Overflow that we consider as unofficial documentation in this research. Our approach takes the API method's name as an input and generates a natural language summary based on Stack Overflow discussions of that API method. We have conducted a survey that involves 16 Android developers to evaluate the quality of our automatically generated summaries and compare them with the official Android documentation. Our results demonstrate that while developers find the official documentation more useful in general, the generated summaries are also competitive, in particular for offering implementation details, and can be used as a complementary source for guiding developers in software development and maintenance tasks.
引用
收藏
页码:142 / 152
页数:11
相关论文
共 50 条
  • [1] Leveraging Stack Overflow to detect relevant tutorial fragments of APIs
    Wu, Di
    Jing, Xiao-Yuan
    Zhang, Hongyu
    Zhou, Yuming
    Xu, Baowen
    EMPIRICAL SOFTWARE ENGINEERING, 2023, 28 (01)
  • [2] Leveraging Stack Overflow to detect relevant tutorial fragments of APIs
    Di Wu
    Xiao-Yuan Jing
    Hongyu Zhang
    Yuming Zhou
    Baowen Xu
    Empirical Software Engineering, 2023, 28
  • [3] Leveraging Stack Overflow to Detect Relevant Tutorial Fragments of APIs
    Wu, Di
    Jing, Xiao-Yuan
    Zhang, Hongyu
    Zhou, Yuming
    Xu, Baowen
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, : 119 - 130
  • [4] How Is Software Reuse Discussed in Stack Overflow?
    AlOmar, Eman Abdullah
    Peruma, Anthony
    Mkaouer, Mohamed Wiem
    Newman, Christian
    Ouni, Ali
    PROCEEDINGS OF THE 2023 CONFERENCE ON SYSTEMS ENGINEERING RESEARCH, CSER 2023, 2024, : 357 - 372
  • [5] An Exploratory Study on How Software Reuse is Discussed in Stack Overflow
    AlOmar, Eman Abdullah
    Barinas, Diego
    Liu, Jiaqian
    Mkaouer, Mohamed Wiem
    Ouni, Ali
    Newman, Christian
    REUSE IN EMERGING SOFTWARE ENGINEERING PRACTICES, ICSR 2020, 2020, 12541 : 292 - 303
  • [6] Recommending APIs for API Related Questions in Stack Overflow
    Zhang, Jingxuan
    Jiang, He
    Ren, Zhilei
    Chen, Xin
    IEEE ACCESS, 2018, 6 : 6205 - 6219
  • [7] Bootstrapping cookbooks for APIs from crowd knowledge on Stack Overflow
    Souza, Lucas B. L.
    Campos, Eduardo C.
    Madeira, Fernanda
    Paixao, Klerisson
    Rocha, Adriano M.
    Maia, Marcelo de Almeida
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 111 : 37 - 49
  • [8] Automatic Mining of Opinions Expressed About APIs in Stack Overflow
    Uddin, Gias
    Khomh, Foutse
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (03) : 522 - 559
  • [9] Unsupervised Extreme Multi Label Classification of Stack Overflow Posts
    Devine, Peter
    Blincoe, Kelly
    2022 IEEE/ACM 1ST INTERNATIONAL WORKSHOP ON NATURAL LANGUAGE-BASED SOFTWARE ENGINEERING (NLBSE 2022), 2022, : 1 - 8
  • [10] Mining the Usage of Reactive Programming APIs: A Study on GitHub and Stack Overflow
    Zimmerle, Carlos
    Gama, Kiev
    Castor, Fernando
    Mota Filho, Jose Murilo
    2022 MINING SOFTWARE REPOSITORIES CONFERENCE (MSR 2022), 2022, : 203 - 214