arrow
返回

An Extractive-and-Abstractive Framework for Source Code Summarization

用于源代码摘要的提取和抽象框架

delete2024-03-14
delete5
delete
OA
AI
W
Weisong Sun
房
房春荣 (Chunrong Fang) *
Y
Yuchen Chen
Q
Quanjun Zhang
G
Guanhong Tao
Y
Yudu You
T
Tingxu Han
Y
Yifei Ge
Y
Yuling Hu
骆斌 封面图
骆斌 (Bin Luo)
陈
陈振宇 (Zhenyu Chen)
DOI:10.1145/3632742delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
(Source) Code summarization aims to automatically generate summaries/comments for given code snippets in the form of natural language. Such summaries play a key role in helping developers understand and maintain source code. Existing code summarization techniques can be categorized into extractive methods and abstractive methods. The extractive methods extract a subset of important statements and keywords from the code snippet using retrieval techniques and generate a summary that preserves factual details in important statements and keywords. However, such a subset may miss identifier or entity naming, and consequently, the naturalness of the generated summary is usually poor. The abstractive methods can generate human-written-like summaries leveraging encoder-decoder models. However, the generated summaries often miss important factual details. To generate human-written-like summaries with preserved factual details, we propose a novel extractive-and-abstractive framework. The extractive module in the framework performs the task of extractive code summarization, which takes in the code snippet and predicts important statements containing key factual details. The abstractivemodule in the framework performs the task of abstractive code summarization, which takes in the code snippet and important statements in parallel and generates a succinct and human-written-like natural language summary. We evaluate the effectiveness of our technique, called EACS, by conducting extensive experiments on three datasets involving six programming languages. Experimental results show that EACS significantly outperforms state-of-the-art techniques for all three widely used metrics, including BLEU, METEOR, and ROUGH-L. In addition, the human evaluation demonstrates that the summaries generated by EACS have higher naturalness and informativeness and are more relevant to given code snippets.
Keyword:
Code summarization
extractive code summarization
abstractive code summarization program comprehension
Autofolding for Source Code Summarization用于源代码摘要的自动折叠
err2017-12-01
err37
errOAAI
errFowkes, Jaroslav; Chanthirasegaran, Pankajan; Ranca, Razvan; Allamanis, Miltiadis; Lapata, Mirella; Sutton, Charles
err分享
err收藏
Summarizing source code with hierarchical code representation用分层代码表示总结源代码
err2022-03-01
err14
PREAI
errZhou, Ziyi; Yu, Huiqun; Fan, Guisheng; Huang, Zijie; Yang, Xingguang
err分享
err收藏
err分享
err收藏
ClassSum: a deep learning model for class-level code summarization
err2022-10-10
err0
PREAI
errMingchen Li; Huiqun Yu; Guisheng Fan; Ziyi Zhou; Jiawen Huang
err分享
err收藏
A review of automatic source code summarization源代码自动摘要综述
err2024-10-07
err1
PREAI
errZhang, Xuejun; Hou, Xia; Qiao, Xiuming; Song, Wenfeng
err分享
err收藏

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.4K
被引数:
4.5K

机构

Purdue University System 封面图
Purdue University System
学者数:
4.0W
论文数: 3.6W
被引数: 4.7W
南京大学 封面图
南京大学
学者数:
6.8K
论文数: 1.9K
被引数: 4.4W
引用论文

引用论文

err
IF0
err
err0
errOAAI
err
err分享
err收藏
SCALING WITH KNOWN UNCERTAINTY: A SYNTHESIS
err2006-01-01
err0
PREAI
errJIANGUO WU; HARBIN LI; K. BRUCE JONES; ORIE L. LOUCKS
err分享
err收藏
Ninety-six suspected transfusion related acute lung injury cases: Investigation findings and clinical outcome
err2013-09-04
err0
errOAAI
errNay Win; Edwin Massey; Geoff Lucas; Deborah Sage; Colin Brown; Ann Green; Marcela Contreras; Cristina Navarrete
err分享
err收藏
Homeobox Gene Involvement in Normal Hematopoiesis and in the Pathogenesis of Childhood Leukemias
err2017-01-01
err0
PREAI
errMaria Adamaki; Maria Goulielmaki; Ioannis Christodoulou; Spiros Vlahopoulos; Vassilis Zoumpourlis
err分享
err收藏
err分享
err收藏
err分享
err收藏
Molecular carcinogenesis in equine penile cancer: A potential animal model for human penile cancer
err2018-12-01
err0
PREAI
errAlejandro Suárez-Bonnet; Claire Willis; Rachel Pittaway; Ken Smith; Tim Mair; Simon L. Priestnall
err分享
err收藏
学者 查看更多内容