arrow
返回

Automatic source code summarization with graph attention networks

delete2022-06-01
delete26
delete
OA
AI
周
周余 (Yu Zhou)
J
Juanjuan Shen
X
Xiaoqing Zhang
W
Wenhua Yang
T
Tingting Han
T
Taolue Chen *
DOI:10.1016/j.jss.2022.111257delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Source code summarization aims to generate concise descriptions for code snippets in a natural language, thereby facilitates program comprehension and software maintenance. In this paper, we propose a novel approach-GSCS-to automatically generate summaries for Java methods, which leverages both semantic and structural information of the code snippets. To this end, GSCS utilizes Graph Attention Networks to process the tokenized abstract syntax tree of the program, which employ a multi-head attention mechanism to learn node features in diverse representation sub-spaces, and aggregate features by assigning different weights to its neighbor nodes. GSCS further harnesses an additional RNN-based sequence model to obtain the semantic features and optimizes the structure by combining its output with a transformed embedding layer. We evaluate our approach on two widely adopted Java datasets; the experiment results confirm that GSCS outperforms the state-of-the-art baselines. (c) 2022 Elsevier Inc. All rights reserved.
Keyword:
Source code summarization
Recurrent neural network
Graph neural network
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
Multi-granularity heterogeneous graph attention networks for extractive document summarization用于提取文档摘要的多粒度异构图注意力网络
err2022-11-01
err5
PREAI
errZhao, Yu; Wang, Leilei; Wang, Cui; Du, Huaming; Wei, Shaopeng; Feng, Huali; Yu, Zongjian; Li, Qing
err分享
err收藏
err分享
err收藏
Function Call Graph Context Encoding for Neural Source Code Summarization
err2023-09-01
err5
PREAI
errBansal, Aakash; Eberhart, Zachary; Karas, Zachary; Huang, Yu; Mcmillan, Collin
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

U
University of London
学者数:
1.7K
论文数: 763
被引数: 14.7W
引用论文

引用论文

err
IF0
err
err0
errOAAI
err
err分享
err收藏
err分享
err收藏
Establishment and characterization of a new triple-negative canine mammary cancer cell line
err2018-10-01
err0
PREAI
errHong Zhang; Shimin Pei; Bin Zhou; Huanan Wang; Hongchao Du; Di Zhang; Degui Lin
err分享
err收藏
On the Naturalness of Software论软件的自然性
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
err分享
err收藏
Data on RNA-seq analysis of the cocoa pod borer pest Conopomorpha cramerella (Snellen) (Lepidoptera: Gracillariidae)
err2021-02-01
err0
errOAAI
errNor Azlan Nor Muhammad; Intan Azlinda Ramlee; Diana Mohd Nor; Mahasakthy Vijeyasri Satyavenathan; Nur Lina Rahmat; Alias Awang; Maizom Hassan
err分享
err收藏
Acid catalysis in hydrolytic reactions水解反应中的酸催化
err1929-01-01
err0
PREAI
errJ. N. Brönsted; W. F. K. Wynne-Jones
err分享
err收藏
学者 查看更多内容