Action Word Prediction for Neural Source Code Summarization

被引:15
|
作者
Haque, Sakib [1 ]
Bansal, Aakash [1 ]
Wu, Lingfei [2 ]
McMillan, Collin [1 ]
机构
[1] Univ Notre Dame, Dept Comp Sci, Notre Dame, IN 46556 USA
[2] IBM Res, Yorktown Hts, NY USA
关键词
neural networks; source code summarization; automatic documentation generation; AI in SE; GENERATION;
D O I
10.1109/SANER50967.2021.00038
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Source code summarization is the task of creating short, natural language descriptions of source code. Code summarization is the backbone of much software documentation such as JavaDocs, in which very brief comments such as "adds the customer object" help programmers quickly understand a snippet of code. In recent years, automatic code summarization has become a high value target of research, with approaches based on neural networks making rapid progress. However, as we will show in this paper, the production of good summaries relies on the production of the action word in those summaries: the meaning of the example above would be completely changed if "removes" were substituted for "adds." In this paper, we advocate for a special emphasis on action word prediction as an important stepping stone problem towards better code summarization - current techniques try to predict the action word along with the whole summary, and yet action word prediction on its own is quite difficult. We show the value of the problem for code summaries, explore the performance of current baselines, and provide recommendations for future research.
引用
下载
收藏
页码:330 / 341
页数:12
相关论文
共 50 条
  • [41] Automatic source code summarization with graph attention networks
    Zhou, Yu
    Shen, Juanjuan
    Zhang, Xiaoqing
    Yang, Wenhua
    Han, Tingting
    Chen, Taolue
    JOURNAL OF SYSTEMS AND SOFTWARE, 2022, 188
  • [42] Evaluating Source Code Summarization Techniques: Replication and Expansion
    Eddy, Brian P.
    Robinson, Jeffrey A.
    Kraft, Nicholas A.
    Carver, Jeffrey C.
    2013 IEEE 21ST INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2013, : 13 - 22
  • [43] Naturalness in Source Code Summarization. How Significant is it?
    Ferretti, Claudio
    Saletta, Martina
    2023 IEEE/ACM 31ST INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC, 2023, : 125 - 134
  • [44] Automatic Documentation Generation via Source Code Summarization
    McBurney, Paul W.
    2015 IEEE/ACM 37TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, VOL 2, 2015, : 903 - 906
  • [45] Semantic Similarity Metrics for Evaluating Source Code Summarization
    Haque, Sakib
    Eberhart, Zachary
    Bansal, Aakash
    McMillan, Collin
    30TH IEEE/ACM INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2022), 2022, : 36 - 47
  • [46] Semantic Similarity Metrics for Evaluating Source Code Summarization
    Haque, Sakib
    Eberhart, Zachary
    Bansal, Aakash
    McMillan, Collin
    IEEE International Conference on Program Comprehension, 2022, 2022-March : 36 - 47
  • [47] Enhancing source code summarization from structure and semantics
    Lu, Xurong
    Niu, Jun
    2023 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS, IJCNN, 2023,
  • [48] A convolutional attention network for extreme summarization of source code
    2016, International Machine Learning Society (IMLS) (05):
  • [49] Semantic Similarity Metrics for Evaluating Source Code Summarization
    Haque, Sakib
    Eberhart, Zachary
    Bansal, Aakash
    McMillan, Collin
    arXiv, 2022,
  • [50] Improved Code Summarization via a Graph Neural Network
    LeClair, Alexander
    Haque, Sakib
    Wu, Lingfei
    McMillan, Collin
    2020 IEEE/ACM 28TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC, 2020, : 184 - 195